How to specify `SPI` in `library.json`

As it says. I’m trying to construct library.json for a library that depends on SPI. How to I specify it? Here’s what I’ve got:

	"name": "kwSCD30",
	"version": "1.0.4",
	"description": "Arduino firmware for a Sensirion SCD30 temperature, humidity, and CO2 sensor.",
	"keywords": "sensor, arduino, temperature, humidity, co2",
		"type": "git",
		"url": ""
			"name": "Richard Lyon",
			"email": "",
			"url": "",
			"maintainer": true
	"license": "MIT",
	"homepage": "",
        "sparkfun/SparkFun SCD30 Arduino Library": "^1.0.14",
        "???????/SPI": "*"
	"frameworks": "arduino",
	"platforms": "espressif32"

I asked this before, but received no reply. Any reply gratefully received. Thank you.

I’d say either leave it out or just specify it as SPI. PlatformIO always searches the built-in libraries when resolving a libraries dependencies, so the preferred way should be to not specify SPI at all. In lib_deps one can enforce the SPI library inclusion by just lib_deps = SPI.

Well, well. I can’t think why I didn’t just type "SPI": "*". Works a treat. Thank you.

As a point of feedback - in my installation, compile was failing on missing SPI until I made this addition to library.json. I’m not overly familiar with the inner workings of PlatformIO and it’s possible I’m misconfigured somewhere, but PlatformIO didn’t appear to search the built-in libraries as you suggest it should.

Is your SPI inclusion hiding behing conditional #if? Use libLDFMode with the value chain+ or deep+ to counter-act it.