Cargo Features
[dependencies]
gadget-sdk = { version = "0.5.1", default-features = false, features = ["std", "wasm", "testing", "getrandom"] }
- default = std
-
The
std
feature is set by default whenevergadget-sdk
is added without
somewhere in the dependency tree.default-features = false - std default = http-body-util, nix, sqlx
-
Enables alloy-provider ^0.1, getrandom, std of hex, std and std_rng of rand, std of sp-io ^33.0.0, native of subxt ^0.37.0, std of tangle-subxt ^0.5.0, parking_lot, process and rt-multi-thread of tokio and hyper, hyper-util, and parking_lot
hyper:
Metrics deps
and tokio-sleep of backon
Event Watchers and Handlers
and std of gadget-blueprint-serde, gadget-blueprint-proc-macro, and gadget-io
gadget-blueprint-proc-macro:
Macros
Affects
clients::tangle
,context_config::ContextConfig
,context_config::GadgetCLICoreSettings
,gadget_config::StdGadgetConfiguration
,config::load
,config::load_with_lock
,backend::fs
,gadget-sdk::executor
,gadget-sdk::metrics
,gadget-sdk::network
,gadget-sdk::run
,gadget-sdk::store
,channels::create_job_manager_to_async_protocol_channel_split
,channels::create_job_manager_to_async_protocol_channel_split_io
,channels::create_job_manager_to_async_protocol_channel_split_io_triplex
,store::InMemoryBackend
,store::SqliteBackend
,keystore::TanglePairSigner
,keystore::BackendExt.ecdsa_key
,keystore::BackendExt.sr25519_key
… - wasm
-
Enables tokio, gloo-timers-sleep of backon, wasm-bindgen of gadget-io, web of subxt ^0.37.0 and tangle-subxt ^0.5.0, js of optional getrandom
Affects
keystore::TanglePairSigner
,keystore::BackendExt.ecdsa_key
,keystore::BackendExt.sr25519_key
,keystore::BackendExt.bls381_key
,keystore::BackendExt.bls_bn254_key
,gadget-sdk::benchmark
,gadget-sdk::clients
,gadget-sdk::event_listener
,gadget-sdk::event_utils
,gadget-sdk::mutex_ext
,gadget-sdk::prometheus
,gadget-sdk::tracer
,gadget-sdk::tx
… - testing
-
Affects
event_listener::testing
… - getrandom
-
Randomness
Enables getrandom, getrandom of rand
Affects
random::getrandom_or_panic
,random::getrandom_or_panic
…
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.
- http-body-util std
- nix std
- sqlx std
-
Enables sqlx =0.7.3