Skip to main content

moddef_core/
schema.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! Generated protobuf schema types (spec §27), compiled by build.rs from the
4//! vendored proto/moddef/v1/*.proto via protox + prost-build. Under `std`,
5//! pbjson-generated serde impls give protojson-semantics JSON (and, via
6//! `document`, YAML) for every message.
7//!
8//! Maps use BTreeMap (`btree_map=.`), which keeps the types `alloc`-only and
9//! binary encoding deterministic — conformance tests compare byte-for-byte
10//! with Go-produced `.moddef` goldens.
11
12#[allow(clippy::all, missing_docs)]
13mod pb {
14    include!(concat!(env!("OUT_DIR"), "/moddef.v1.rs"));
15
16    #[cfg(feature = "std")]
17    include!(concat!(env!("OUT_DIR"), "/moddef.v1.serde.rs"));
18}
19
20pub use pb::*;