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 = "fixed-v1_0")]
25#[cfg_attr(docsrs, doc(cfg(feature = "fixed-v1_0")))]
26pub mod fixed_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 = "heapless-v0_9")]
37#[cfg_attr(docsrs, doc(cfg(feature = "heapless-v0_9")))]
38pub mod heapless_v0_9;
39
40#[cfg(feature = "nalgebra-v0_33")]
41#[cfg_attr(docsrs, doc(cfg(feature = "nalgebra-v0_33")))]
42pub mod nalgebra_v0_33;
43
44#[cfg(feature = "serde-big-array-v0_5")]
45#[cfg_attr(docsrs, doc(cfg(feature = "serde-big-array-v0_5")))]
46pub mod serde_big_array_v0_5;
47
48#[cfg(feature = "uuid-v1_0")]
49#[cfg_attr(docsrs, doc(cfg(feature = "uuid-v1_0")))]
50pub mod uuid_v1_0;
51
52impl Schema for NamedType {
53    const SCHEMA: &'static NamedType = &NamedType {
54        name: "NamedType",
55        ty: &DataModelType::Schema,
56    };
57}