Cargo Features

[dependencies]
bonsol-interface = { version = "0.1.1", default-features = false, features = ["on-chain", "anchor", "idl-build", "serde", "solana-sdk"] }
default = serde, solana-sdk

These default features are set whenever bonsol-interface is added without default-features = false somewhere in the dependency tree.

on-chain anchor? = solana-program

Affects bonsol-interface::callback

anchor = anchor-lang, on-chain

Affects bonsol-interface::anchor

idl-build

Enables idl-build of anchor-lang

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.

serde default

Affects instructions::serde_helpers

solana-program on-chain?

Enables solana-program ^1.18.22

solana-sdk default

Enables solana-sdk ^1.18.22

anchor-lang anchor? idl-build?