Cargo Features

solana-address has no features set by default.

[dependencies]
solana-address = { version = "2.0.0", features = ["std", "alloc", "atomic", "borsh", "bytemuck", "copy", "curve25519", "decode", "dev-context-only-utils", "error", "frozen-abi", "rand", "sanitize", "serde", "sha2", "syscalls"] }
std frozen-abi? rand? = alloc, decode

Enables std of optional borsh and optional serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

alloc borsh? std?
atomic rand?

Enables solana-atomic-u64

borsh = alloc

Enables borsh

bytemuck = copy

Enables bytemuck and bytemuck_derive

copy bytemuck?
curve25519 = sha2, syscalls

Enables curve25519-dalek

Affects solana-address::bytes_are_curve_point, solana-address::syscalls

decode std? = error

Enables five8 and five8_const

Affects error::ParseAddressError

dev-context-only-utils = rand

Enables arbitrary

error decode? sha2? syscalls?

Enables solana-program-error

Affects solana-address::error

frozen-abi = std

Enables solana-frozen-abi, solana-frozen-abi-macro, and solana-program-error

rand dev-context-only-utils? = atomic, std

Enables rand ^0.8.5

sanitize

Enables solana-sanitize

serde

Enables serde and serde_derive

sha2 curve25519? = error

Enables solana-sha256-hasher

syscalls curve25519? = error

Enables solana-define-syscall ^4.0.0

Affects solana-address::syscalls