Cargo Features

[dependencies]
switchboard-on-demand = { version = "0.2.2", default-features = false, features = ["no-entrypoint", "cpi", "ipfs", "all-features", "pid_override", "client", "devnet", "anchor", "doc_cfg"] }
default = cpi

The cpi feature is set by default whenever switchboard-on-demand is added without default-features = false somewhere in the dependency tree.

no-entrypoint all-features? cpi
cpi default all-features? = no-entrypoint
ipfs all-features?

Enables ipfs of switchboard-common

all-features = client, cpi, ipfs, no-entrypoint
pid_override
client all-features? = anchor-client, anchor-lang, anchor-spl, solana-client, solana-sdk, tokio, tokio-util

Enables client of switchboard-common

devnet
anchor = anchor-lang, anchor-spl
secrets doc_cfg

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

anchor-lang anchor? client?
anchor-spl anchor? client?
anchor-client client?
solana-client client?

Enables solana-client ^1.17.16, <2.0

solana-sdk client?

Enables solana-sdk ^1.17.16, <2.0

tokio client?
tokio-util client?