Cargo Features
[dependencies]
starknet-types-core = { version = "1.0.0", default-features = false, features = ["std", "alloc", "curve", "hash", "parity-scale-codec", "serde", "prime-bigint", "num-traits", "apollo-serialization", "secret-felt", "arbitrary"] }
- default = curve, num-traits, serde, std
-
These default features are set whenever
starknet-types-coreis added withoutsomewhere in the dependency tree.default-features = false - std default apollo-serialization? arbitrary? = alloc
-
Enables std of optional lambdaworks-crypto, lambdaworks-math, num-bigint, num-integer, num-traits, optional rand ^0.9.2, optional serde, and optional zeroize
rand:
Option (enabled by default): without "std" rand uses libcore; this option enables functionality expected to be available on a standard platform.
Affects
starknet-types-core::short_string… - alloc secret-felt? serde std
-
Enables alloc of optional zeroize
Affects
starknet-types-core::short_string… - curve default
-
Affects
starknet-types-core::curve… - hash
-
Enables blake2, digest ^0.10.7, and lambdaworks-crypto
Affects
starknet-types-core::hash… - parity-scale-codec
-
Enables parity-scale-codec
- serde default = alloc
-
Enables serde
- prime-bigint
-
Enables lazy_static
- num-traits default std
- apollo-serialization = std
- secret-felt = alloc
-
Enables zeroize, const-generics and core_hint_black_box of subtle and alloc of rand ^0.9.2
rand:
Option: "alloc" enables support for Vec and Box when not using "std"
Affects
felt::secret_felt… - arbitrary = std
-
Enables arbitrary
Optional