Cargo Features

Foca has no features set by default.

[dependencies]
foca = { version = "0.17.1", features = ["std", "bincode-codec", "postcard-codec", "tracing"] }
default

Will always be empty

std bincode-codec?

Adds compatibility with some types and traits

Enables std of anyhow

bincode-codec = bincode, serde, std

Exposes BincodeCodec a lean general-purpose std-only codec

Enables std of bytes

postcard-codec = postcard, serde

Exposes PostcardCodec, a no_std-friendly codec

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.

serde bincode-codec? postcard-codec?
bincode bincode-codec?
postcard postcard-codec?
tracing implicit feature

Enables tracing

tracing:

Application-level tracing for Rust