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 whenever solana-program is added without default-features = false somewhere in the dependency tree.

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.