1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
// Copyright © 2023 - 2026 Static Site Generator (SSG). All rights reserved.
// SPDX-License-Identifier: Apache-2.0 OR MIT
//! Pure-Rust YAML serde implementation, inlined into html-generator.
//!
//! Mirrors a subset of the `serde_yml` API surface: no `unsafe`, no
//! `libyml` C dependency, no FFI. The implementation is a snapshot of
//! `yaml_safe@0.1.0` (upstream at `/Users/seb/Code/Public/Rust/yaml_safe`)
//! taken at commit time.
//!
//! # Why inlined
//!
//! `html-generator` needs YAML parsing for front-matter extraction and
//! deliberately avoids both `serde_yaml` (unmaintained) and `serde_yml`
//! (RUSTSEC-2025-0068: unsound, links the unsafe `libyml` C library).
//! Vendoring as a separate path crate worked but blocked
//! `cargo publish --dry-run` because path deps must carry a registry
//! version. Inlining as a private module sidesteps that without
//! adding an unsound transitive dependency.
//!
//! Fixes flow upstream first; this tree is refreshed by re-vendoring,
//! not by editing in place. The only call site in the parent crate is
//! `parse_yaml_to_map` in `src/utils.rs`.
// Vendored verbatim — relax the parent crate's stricter lints across
// this subtree so the YAML library compiles unmodified. The original
// upstream still has `#![forbid(unsafe_code)]`, which the parent crate
// also enforces; the rest of the parent's lint policy doesn't apply
// to a third-party tree we don't author.
pub
pub
pub
pub
pub
pub
pub
pub use ;
pub use ;
pub use Mapping;
pub use Number;
pub use ;
pub use ;
pub use ;
pub use ;