Cargo Features

[dependencies]
channel-bridge = { version = "0.8.0", default-features = false, features = ["std", "portable-atomic", "edge-ws", "embedded-svc", "wasm", "prost"] }
default = std

The std feature is set by default whenever channel-bridge is added without default-features = false somewhere in the dependency tree.

std default

Enables std of optional embedded-io, optional embedded-svc, and serde

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

portable-atomic

Enables portable-atomic of atomic-waker

edge-ws = embassy-futures, embedded-io, embedded-io-async, heapless, log, postcard

Enables edge-ws

Affects asynch::ws

embedded-svc = embassy-futures, heapless, log, postcard

Enables embedded-svc

Affects ws::embedded_svc_impl, asynch::ws

wasm = futures, gloo-net

Enables alloc of postcard

Affects asynch::ws

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.

log edge-ws? embedded-svc?
heapless edge-ws? embedded-svc?
prost implicit feature

Enables prost ^0.11

prost:

A Protocol Buffers implementation for the Rust Language

Affects ws::ReceiveData, ws::ProstError

postcard edge-ws? embedded-svc? wasm?
gloo-net wasm?

Enables gloo-net ^0.4

futures wasm?
embassy-futures edge-ws? embedded-svc?
embedded-io edge-ws?
embedded-io-async edge-ws?