Skip to main content

noyalib/compat/
mod.rs

1// SPDX-License-Identifier: MIT OR Apache-2.0
2// Copyright (c) 2026 Noyalib. All rights reserved.
3
4//! Compatibility shims for downstream crates migrating to `noyalib`.
5//!
6//! Each sub-module here mirrors the public API of an upstream YAML
7//! library byte-for-byte, so an existing codebase can switch by
8//! changing one line in `Cargo.toml` and one `use` statement. The
9//! shims are intentionally thin — they delegate every operation to
10//! the underlying `noyalib` engine without re-implementing any
11//! parsing, serialisation, or schema logic.
12//!
13//! Each shim is gated behind its own feature flag so users who do
14//! not need migration help do not pay for the wrapper code or the
15//! re-exports.
16
17#[cfg(feature = "compat-serde-yaml")]
18#[cfg_attr(docsrs, doc(cfg(feature = "compat-serde-yaml")))]
19pub mod serde_yaml;