postcard_schema/impls/
mod.rs

1//! Implementations of the [`Schema`] trait for foreign crates
2//!
3//! Each module requires the matching feature flag to be enabled.
4
5use crate::{
6    schema::{DataModelType, NamedType},
7    Schema,
8};
9
10pub mod builtins_nostd;
11
12#[cfg(all(not(feature = "use-std"), feature = "alloc"))]
13#[cfg_attr(docsrs, doc(cfg(all(not(feature = "use-std"), feature = "alloc"))))]
14pub mod builtins_alloc;
15
16#[cfg(feature = "use-std")]
17#[cfg_attr(docsrs, doc(cfg(feature = "use-std")))]
18pub mod builtins_std;
19
20#[cfg(feature = "chrono-v0_4")]
21#[cfg_attr(docsrs, doc(cfg(feature = "chrono-v0_4")))]
22pub mod chrono_v0_4;
23
24#[cfg(feature = "uuid-v1_0")]
25#[cfg_attr(docsrs, doc(cfg(feature = "uuid-v1_0")))]
26pub mod uuid_v1_0;
27
28#[cfg(feature = "heapless-v0_7")]
29#[cfg_attr(docsrs, doc(cfg(feature = "heapless-v0_7")))]
30pub mod heapless_v0_7;
31
32#[cfg(feature = "heapless-v0_8")]
33#[cfg_attr(docsrs, doc(cfg(feature = "heapless-v0_8")))]
34pub mod heapless_v0_8;
35
36#[cfg(feature = "nalgebra-v0_33")]
37#[cfg_attr(docsrs, doc(cfg(feature = "nalgebra-v0_33")))]
38pub mod nalgebra_v0_33;
39
40impl Schema for NamedType {
41    const SCHEMA: &'static NamedType = &NamedType {
42        name: "NamedType",
43        ty: &DataModelType::Schema,
44    };
45}