Cargo Features
[dependencies]
fuel-tx = { version = "0.59.1", default-features = false, features = ["std", "alloc", "internals", "typescript", "random", "da-compression", "test-helpers"] }
- default = std
-
These default features are set whenever
fuel-tx
is added without
somewhere in the dependency tree.default-features = false Enables fuel-asm, fuel-crypto, fuel-merkle, and fuel-types
- std default = alloc
-
Enables itertools ^0.10, serde, and optional rand, std of fuel-asm, fuel-crypto, fuel-merkle, fuel-types, and hex
- alloc std test-helpers? typescript? = bitflags, derive_more, educe, fuel-merkle, hashbrown, postcard, strum, strum_macros
-
Enables serde of fuel-asm, alloc and serde of fuel-types, use_alloc of itertools ^0.10
Affects
gas::GasCosts
… - internals test-helpers?
- typescript = alloc, js-sys, serde-wasm-bindgen, wasm-bindgen
-
Enables serde_json, typescript of fuel-types
Affects
consensus_parameters::typescript
,policies::typescript
,contract::typescript
,input::typescript
,contract::typescript
,output::typescript
… - random = rand
-
Enables random of fuel-crypto and fuel-types
- da-compression = fuel-compression
-
Affects
chargeable_transaction::BodyConstraints
,coin::CoinSpecification
,message::MessageSpecification
,utxo_id::CompressedUtxoId
… - test-helpers = alloc, internals
-
Affects
fuel-tx::test_helper
…
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.
- bitflags alloc?
- derive_more alloc?
- educe alloc?
- fuel-compression da-compression?
- fuel-merkle default alloc? std
- hashbrown alloc?
-
Enables hashbrown ^0.14
- itertools alloc? std
-
Enables itertools ^0.10
- js-sys typescript?
- postcard alloc?
- rand random?
- serde-wasm-bindgen typescript?
- strum alloc?
-
Enables strum ^0.24
- strum_macros alloc?
-
Enables strum_macros ^0.24
- wasm-bindgen typescript?