Cargo Features

[dependencies]
subxt-lightclient = { version = "0.38.0", default-features = false, features = ["native", "web"] }
default = native

The native feature is set by default whenever subxt-lightclient is added without default-features = false somewhere in the dependency tree.

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?