Cargo Features

[dependencies]
solana-pubkey = { version = "2.1.1", default-features = false, features = ["std", "borsh", "bytemuck", "curve25519", "dev-context-only-utils", "frozen-abi", "rand", "serde", "sha2"] }
default = std

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

std default borsh? rand?
borsh = std

Enables borsh and borsh ^0.10.3

bytemuck

Enables bytemuck and bytemuck_derive

curve25519 = sha2

Enables curve25519-dalek

Affects solana-pubkey::bytes_are_curve_point

dev-context-only-utils = rand

Enables arbitrary

frozen-abi

Enables solana-frozen-abi and solana-frozen-abi-macro

rand dev-context-only-utils? = std

Enables rand

Affects solana-pubkey::new_rand

serde

Enables serde and serde_derive

sha2 curve25519?

Enables sha2 of solana-sha256-hasher