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 whenever aurora-engine-types is added without default-features = false somewhere in the dependency tree.

std default

Enables serde and std of primitive-types, std of borsh and hex and std of rlp, 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 its std implementation includes a transitive dependency on getrandom which uses OS call to obtain entropy. Such calls are not available in Wasm, therefore we cannot use the std implementation of primitive-types in other Rust contracts.

Enables std of borsh and hex

impl-serde

Enables impl-serde of primitive-types