Cargo Features
[dependencies]
fuel-core = { version = "0.40.0", default-features = false, features = ["smt", "p2p", "relayer", "rocksdb", "test-helpers", "rocksdb-production", "wasm-executor"] }
- default = rocksdb
-
The
rocksdb
feature is set by default wheneverfuel-core
is added without
somewhere in the dependency tree.default-features = false - smt
-
Enables smt of fuel-core-executor, fuel-core-storage, and fuel-core-upgradable-executor
- 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, postcard, rocksdb ^0.21, and tempfile
Affects
combined_database::CombinedDatabaseConfig.state_rewind_policy
,database::convert_to_rocksdb_direction
,state::historical_rocksdb
,state::rocks_db
,state::rocks_db_key_iterator
… - test-helpers
-
Enables test-helpers of fuel-core-chain-config, fuel-core-compression, fuel-core-database, fuel-core-importer, optional fuel-core-p2p, fuel-core-services, fuel-core-storage, and fuel-core-txpool
Affects
database::storage
,receipt::all_receipts
,genesis::execute_and_commit_genesis_block
,rocks_db::test_helpers
,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