Cargo Features

[dependencies]
solana-sdk = { version = "1.18.3", default-features = false, features = ["program", "full", "dev-context-only-utils", "curve25519-dalek"] }
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 = full

The full feature is set by default whenever solana-sdk is added without default-features = false somewhere in the dependency tree.

full default = assert_matches, byteorder, chrono, digest, ed25519-dalek, ed25519-dalek-bip32, generic-array, libsecp256k1, memmap2, rand, rand0-7, serde_json, sha3, solana-logger

Affects hash::new_rand, pubkey::new_rand, pubkey::write_pubkey_file, pubkey::read_pubkey_file

dev-context-only-utils

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

assert_matches full
byteorder full
chrono full
curve25519-dalek implicit feature

Enables curve25519-dalek ^3.2.1

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 full

Enables generic-array ^0.14.7

libsecp256k1 full

Enables libsecp256k1 ^0.6.0

memmap2 full

Enables memmap2 ^0.5.10

rand full
rand0-7 full

Enables rand ^0.7

serde_json full
sha3 full
solana-logger full