Cargo Features

[dependencies]
gadget-sdk = { version = "0.1.1", default-features = false, features = ["std", "wasm", "getrandom"] }
default = std

The std feature is set by default whenever gadget-sdk is added without default-features = false somewhere in the dependency tree.

std default = http-body-util, nix, sqlx

Enables alloy-provider ^0.2.1, getrandom, std of hex, std and std_rng of rand, std of sp-io, native of subxt, std of tangle-subxt, 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-proc-macro and gadget-io

gadget-blueprint-proc-macro:

Macros

Affects clients::tangle, config::StdGadgetConfiguration, config::ContextConfig, config::GadgetCLICoreSettings, config::load, config::load_with_lock, events_watcher::evm, 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

wasm

Enables tokio, gloo-timers-sleep of backon, wasm-bindgen of gadget-io, web of subxt and tangle-subxt, js of optional getrandom

Affects keystore::TanglePairSigner, keystore::BackendExt.ecdsa_key, keystore::BackendExt.sr25519_key, keystore::BackendExt.bls_bn254_key, gadget-sdk::benchmark, gadget-sdk::clients, gadget-sdk::events_watcher, gadget-sdk::mutex_ext, gadget-sdk::prometheus, gadget-sdk::tracer, gadget-sdk::tx

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