Cargo Features

[dependencies]
zlink-core = { version = "0.0.1-alpha.1", default-features = false, features = ["std", "embedded", "io-buffer-2kb", "io-buffer-1mb"] }
default = io-buffer-2kb, std

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

std default = tracing

Enables serde_json, alloc of mayheap and std of memchr and serde

memchr:

The 'std' feature permits the memchr crate to use the standard library. This permits this crate to use runtime CPU feature detection to automatically accelerate searching via vector instructions. Without the standard library,
this automatic detection is not possible.

embedded = defmt

Enables serde-json-core, heapless of mayheap

io-buffer-2kb default

I/O buffer sizes: 2kb (default), 4kb, 16kb, 64kb, 1mb (highest selected if multiple enabled).

io-buffer-4kb io-buffer-16kb io-buffer-1mb

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.

tracing std
defmt embedded?