Cargo Features

[dependencies]
ic-auth-client = { version = "0.4.0-alpha", default-features = false, features = ["wasm-js"] }
default = wasm-js

The wasm-js feature is set by default whenever ic-auth-client is added without default-features = false somewhere in the dependency tree.

wasm-js default

Enables wasm-bindgen of ic-agent and wasm_js of getrandom

getrandom:

Optional backend: wasm_js
This flag enables the backend but does not select it. To use the backend, use this flag *and* set getrandom_backend=wasm_js (see README).
WARNING: It is highly recommended to enable this feature only for binary crates and tests,
i.e. avoid unconditionally enabling it in library crates.

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.

getrandom wasm-js