Cargo Features

[dependencies]
fuel-tx = { version = "0.49.0", default-features = false, features = ["std", "alloc", "internals", "typescript", "random", "test-helpers", "serde"] }
default = std

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

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 serde? std test-helpers? typescript? = derivative, fuel-merkle, hashbrown, strum, strum_macros

Enables alloc of fuel-types, use_alloc of itertools ^0.10

Affects gas::GasCosts

internals test-helpers?
typescript = alloc, js-sys, serde, serde-wasm-bindgen, wasm-bindgen

Enables 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

test-helpers = alloc, internals

Affects fuel-tx::test_helper

serde std typescript? = alloc, serde_json

serde is requiring alloc because its mandatory for serde_json. to avoid adding a new feature only for serde_json, we just require alloc here since as of the moment we don't have a use case of serde without alloc.

Enables serde of bitflags, fuel-asm, fuel-crypto, fuel-merkle, and hashbrown

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.

derivative alloc?
fuel-merkle default alloc? serde? std
hashbrown alloc? serde?
itertools alloc? std

Enables itertools ^0.10

js-sys typescript?
rand random?
serde-wasm-bindgen typescript?
serde_json serde?
strum alloc?

Enables strum ^0.24

strum_macros alloc?

Enables strum_macros ^0.24

wasm-bindgen typescript?