Cargo Features

[dependencies]
subxt-lightclient = { version = "0.35.3", 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 ^0.14.0, rt of tokio

web = js-sys, pin-project, send_wrapper, wasm-bindgen, wasm-bindgen-futures, web-sys

Enable this for web/wasm builds.
Exactly 1 of "web" and "native" is expected.

Enables wasm-bindgen of futures-timer, js of getrandom, wasm-bindgen of instant, std of smoldot ^0.16.0

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?

Enables smoldot ^0.16.0

pin-project web?
futures-timer web?
instant web?
getrandom web?