Cargo Features

postcard-schema has no features set by default.

[dependencies]
postcard-schema = { version = "0.1.0", features = ["use-std", "alloc", "derive", "uuid-v1_0", "chrono-v0_4", "heapless-v0_7", "heapless-v0_8", "nalgebra-v0_33"] }
use-std

Enables std of serde

serde:

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

Affects impls::builtins_std, fmt::discover_tys, fmt::discover_tys_sdm, schema::owned, schema::fmt

alloc

Enables alloc of serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

Affects impls::builtins_alloc, schema::owned, schema::fmt

derive = postcard-derive
uuid-v1_0 = uuid_v1_0

Affects impls::uuid_v1_0

chrono-v0_4 = chrono_v0_4

Affects impls::chrono_v0_4

heapless-v0_7 = heapless_v0_7

Affects impls::heapless_v0_7

heapless-v0_8 = heapless_v0_8

Affects impls::heapless_v0_8

nalgebra-v0_33 = nalgebra_v0_33

Affects impls::nalgebra_v0_33

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.

chrono_v0_4 chrono-v0_4?

Enables chrono

heapless_v0_7 heapless-v0_7?

Enables heapless ^0.7

heapless_v0_8 heapless-v0_8?

Enables heapless

nalgebra_v0_33 nalgebra-v0_33?

Enables nalgebra

postcard-derive derive?
uuid_v1_0 uuid-v1_0?

Enables uuid