Cargo Features
[dependencies]
fuel-types = { version = "0.59.1", default-features = false, features = ["std", "alloc", "typescript", "random", "serde", "unsafe"] }
- default = std
-
These default features are set whenever
fuel-types
is added without
somewhere in the dependency tree.default-features = false Enables optional serde
- std default = alloc
-
Enables std of 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
-
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.