Cargo Features

[dependencies]
fuel-types = { version = "0.49.0", default-features = false, features = ["std", "alloc", "typescript", "random", "serde", "unsafe"] }
default = std

These default features are set whenever fuel-types is added without default-features = false somewhere in the dependency tree.

Enables optional serde

std default = alloc

Enables std of optional hex and optional serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

alloc serde? std

Enables alloc of hex

Affects canonical::Serialize.to_bytes

typescript = wasm-bindgen
random = rand
serde = alloc

Enables serde

unsafe

Affects bytes::from_slice_unchecked

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

hex alloc?
rand random?
wasm-bindgen typescript?