Cargo Features

[dependencies]
magic-wormhole = { version = "0.6.1", default-features = false, features = ["all", "transit", "transfer", "forwarding"] }
default all? = transfer, transit

These default features are set whenever magic-wormhole is added without default-features = false somewhere in the dependency tree.

all = default, forwarding
transit default forwarding? transfer = async-trait, bytecodec, if-addrs, noise-protocol, noise-rust-crypto, socket2, stun_codec

Affects magic-wormhole::transit

transfer default = async-tar, rmp-serde, transit

Affects test::test_file_rust2rust, test::test_4096_file_rust2rust, test::test_empty_file_rust2rust, test::test_send_many, magic-wormhole::transfer, magic-wormhole::uri

forwarding all? = rmp-serde, transit

Affects magic-wormhole::forwarding

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.

socket2 transit

Enables socket2

Transit dependencies

stun_codec transit
if-addrs transit

Enables if-addrs ^0.10.2

bytecodec transit
async-trait transit
noise-protocol transit
noise-rust-crypto transit
async-tar transfer

Enables async-tar

Transfer dependencies

rmp-serde forwarding? transfer