Cargo Features

[dependencies]
solana-sdk = { version = "2.1.1", default-features = false, features = ["program", "full", "borsh", "dev-context-only-utils", "frozen-abi", "openssl-vendored", "curve25519-dalek", "generic-array"] }
program

"program" feature is a legacy feature retained to support v1.3 and older
programs. New development should not use this feature. Instead use the solana-program crate

default = borsh, full

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

full default = byteorder, chrono, digest, ed25519-dalek, ed25519-dalek-bip32, libsecp256k1, memmap2, rand, rand0-7, serde_json, sha3, solana-signature

Enables solana-precompile-error, solana-transaction-error, rand of solana-pubkey

Affects pubkey::write_pubkey_file, pubkey::read_pubkey_file

borsh default

Enables borsh, borsh of solana-program and solana-secp256k1-recover

dev-context-only-utils = qualifier_attr

Enables dev-context-only-utils of solana-account

frozen-abi

Enables solana-frozen-abi and solana-frozen-abi-macro, frozen-abi of solana-account and solana-feature-set, frozen-abi of solana-inflation, solana-program, solana-short-vec, solana-signature, and solana-transaction-error

openssl-vendored

Enables the "vendored" feature of openssl inside of secp256r1-program

Enables openssl-vendored of solana-secp256r1-program

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.

byteorder full
chrono full
curve25519-dalek implicit feature

Enables curve25519-dalek

curve25519-dalek:

A pure-Rust implementation of group operations on ristretto255 and Curve25519

digest full
ed25519-dalek full

Enables ed25519-dalek =1.0.1

ed25519-dalek-bip32 full

Enables ed25519-dalek-bip32 ^0.2.0

generic-array implicit feature

Enables generic-array ^0.14.7

generic-array:

Generic types implementing functionality of arrays

libsecp256k1 full

Enables libsecp256k1 ^0.6.0

memmap2 full

Enables memmap2 ^0.5.10

qualifier_attr dev-context-only-utils?
rand full
rand0-7 full

Enables rand ^0.7

serde_json full
sha3 full
solana-signature frozen-abi? full