Cargo Features
[dependencies]
sangedama = { version = "0.1.3", default-features = false, features = ["native", "wasm"] }
Feature definitions for different build targets
- default = native
-
Default features for native builds
- native default
-
Native platform features - includes all desktop/server capabilities
Enables tokio, autonat, dns, mdns, quic, relay, tcp and tokio of libp2p
- wasm
-
WASM-specific features - browser-compatible features
Enables getrandom ^0.2, wasm-bindgen and websocket of libp2p
Features from optional dependencies
Core dependencies that work in both environments