Cargo Features
[dependencies]
solana-pubkey = { version = "2.1.0", 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 wheneversolana-pubkey
is added without
somewhere in the dependency tree.default-features = false - 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