Cargo Features
[dependencies]
subxt-lightclient = { version = "0.38.0", default-features = false, features = ["native", "web"] }
- default = native
-
The
native
feature is set by default wheneversubxt-lightclient
is added without
somewhere in the dependency tree.default-features = false - native default
-
Enable this for native (ie non web/wasm builds).
Exactly 1 of "web" and "native" is expected.Enables std of smoldot-light, rt of tokio
- web = js-sys, pin-project, send_wrapper, wasm-bindgen, wasm-bindgen-futures, web-sys, web-time
-
Enable this for web/wasm builds.
Exactly 1 of "web" and "native" is expected.Enables wasm-bindgen of futures-timer, js of getrandom, std of smoldot
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.
- js-sys web?
-
Enables js-sys
Only needed for web
- send_wrapper web?
- web-sys web?
- wasm-bindgen web?
- wasm-bindgen-futures web?
- smoldot web?
- pin-project web?
- futures-timer web?
- web-time web?
- getrandom web?