Cargo Features

[dependencies]
bonsol-interface = { version = "0.1.2", default-features = false, features = ["on-chain", "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 = solana-program

Affects bonsol-interface::callback

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 ~2.0

solana-sdk default

Enables solana-sdk ~2.0