Cargo Features

solana-system-interface has no features set by default.

[dependencies]
solana-system-interface = { version = "3.1.0", features = ["std", "alloc", "bincode", "frozen-abi", "serde", "wincode"] }
std frozen-abi?
alloc bincode? wincode?

Affects instruction::SystemInstruction

bincode = alloc, serde

Enables bincode of solana-instruction

Affects instruction::create_account, instruction::create_account_with_seed, instruction::assign, instruction::assign_with_seed, instruction::transfer, instruction::transfer_with_seed, instruction::allocate, instruction::allocate_with_seed, instruction::transfer_many, instruction::create_nonce_account_with_seed, instruction::create_nonce_account, instruction::advance_nonce_account, instruction::withdraw_nonce_account, instruction::authorize_nonce_account, instruction::upgrade_nonce_account, instruction::create_account_allow_prefund

frozen-abi = serde, std

Enables solana-frozen-abi and solana-frozen-abi-macro, frozen-abi and std of solana-address

serde bincode? frozen-abi?

Enables serde_derive, serde of solana-address and alloc of serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

wincode = alloc

Enables wincode, wincode of solana-address and solana-instruction

Affects instruction::create_account, instruction::create_account_with_seed, instruction::assign, instruction::assign_with_seed, instruction::transfer, instruction::transfer_with_seed, instruction::allocate, instruction::allocate_with_seed, instruction::transfer_many, instruction::create_nonce_account_with_seed, instruction::create_nonce_account, instruction::advance_nonce_account, instruction::withdraw_nonce_account, instruction::authorize_nonce_account, instruction::upgrade_nonce_account, instruction::create_account_allow_prefund

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.

solana-instruction bincode? wincode?