Cargo Features

[dependencies]
tap-agent = { version = "0.1.0", default-features = false, features = ["native", "wasm", "getrandom"] }
default = native

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

native default = tokio, url
wasm = js-sys, wasm-bindgen, wasm-bindgen-futures, web-sys

Enables wasm of tap-msg

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.

tokio native
url native
wasm-bindgen wasm?

Enables wasm-bindgen

WASM support

js-sys wasm?
wasm-bindgen-futures wasm?
getrandom implicit feature

Enables getrandom ^0.2

getrandom:

A small cross-platform library for retrieving random data from system source

web-sys wasm?