Cargo Features
[dependencies]
solana-program = { version = "2.1.2", default-features = false, features = ["borsh", "dev-context-only-utils", "frozen-abi"] }
- default = borsh
-
The
borsh
feature is set by default wheneversolana-program
is added without
somewhere in the dependency tree.default-features = false - borsh default
-
Enables borsh, borsh ^0.10.3, and solana-borsh, borsh of solana-hash, solana-instruction, solana-program-error, and solana-pubkey
- dev-context-only-utils
-
Enables qualifier_attr
- frozen-abi
-
Enables solana-frozen-abi and solana-frozen-abi-macro, frozen-abi of solana-epoch-schedule and solana-fee-calculator, frozen-abi of solana-hash, solana-instruction, solana-pubkey, solana-rent, and solana-short-vec
solana-program has 4 features without comments.