Cargo Features
[dependencies]
aurora-engine-types = { version = "1.1.0", default-features = false, features = ["std", "contracts-std", "impl-serde"] }
- default = std
-
The
std
feature is set by default wheneveraurora-engine-types
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables serde and std of primitive-types ^0.12, std of borsh and hex and std of rlp ^0.5, serde, and serde_json
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - contracts-std
-
primitive-types/std
is excluded because itsstd
implementation includes a transitive dependency ongetrandom
which uses OS call to obtain entropy. Such calls are not available in Wasm, therefore we cannot use thestd
implementation ofprimitive-types
in other Rust contracts. - impl-serde
-
Enables impl-serde of primitive-types ^0.12