Cargo Features

[dependencies]
fuel-core = { version = "0.26.0", default-features = false, features = ["p2p", "relayer", "rocksdb", "test-helpers", "rocksdb-production", "wasm-executor"] }
default = rocksdb

The rocksdb feature is set by default whenever fuel-core is added without default-features = false somewhere in the dependency tree.

p2p

Enables fuel-core-p2p and fuel-core-sync

Affects adapters::p2p, adapters::sync, adapters::P2PAdapter, adapters::PeerReportConfig, config::Config.p2p, config::Config.sync, sub_services::P2PService, service::SharedState.network, fuel-core::p2p_test_helpers

relayer

Enables fuel-core-relayer

Affects adapters::relayer, adapters::MaybeRelayerAdapter.relayer_synced, adapters::MaybeRelayerAdapter.da_deploy_height, config::Config.relayer, service::SharedState.relayer

rocksdb default rocksdb-production?

Enables num_cpus, rocksdb ^0.21, and tempfile

Affects database::convert_to_rocksdb_direction, state::rocks_db

test-helpers

Enables test-helpers of fuel-core-chain-config, fuel-core-database, optional fuel-core-p2p, fuel-core-services, fuel-core-storage, and fuel-core-txpool

Affects receipt::all_receipts, genesis::execute_and_commit_genesis_block, fuel-core::p2p_test_helpers

rocksdb-production = rocksdb

features to enable in production, but increase build times

Enables jemalloc of rocksdb ^0.21

wasm-executor

Enables wasm-executor of fuel-core-upgradable-executor