Cargo Features

postcard-schema has no features set by default.

[dependencies]
postcard-schema = { version = "0.2.2", features = ["use-std", "alloc", "derive", "core-num-saturating", "chrono-v0_4", "defmt-v0_3", "fixed-v1_0", "heapless-v0_7", "heapless-v0_8", "nalgebra-v0_33", "serde-big-array-v0_5", "uuid-v1_0"] }
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, hash::fnv1a64_owned, 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
core-net core-num-saturating
chrono-v0_4 = chrono_v0_4

Affects impls::chrono_v0_4

defmt-v0_3 = defmt_v0_3
fixed-v1_0 = fixed_v1_0

Affects impls::fixed_v1_0

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

serde-big-array-v0_5 = serde-big-array_v0_5

Affects impls::serde_big_array_v0_5

uuid-v1_0 = uuid_v1_0

Affects impls::uuid_v1_0

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

defmt_v0_3 defmt-v0_3?

Enables defmt ^0.3.5

fixed_v1_0 fixed-v1_0?

Enables fixed

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?
serde-big-array_v0_5 serde-big-array-v0_5?

Enables serde-big-array

uuid_v1_0 uuid-v1_0?

Enables uuid