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
//! # lima
//!
//! **LIMA Is Metadata Annotation** — a small, predictable frontmatter
//! parser. A deliberate, focused subset of YAML: the part frontmatter
//! actually needs, with well-defined types, no surprises, and zero runtime
//! dependencies.
//!
//! ```
//! use lima::{parse_references, ReferencesOptions};
//!
//! let result = parse_references(
//! "title: Hello World\npublished: 2024-03-01\ndraft: false\n",
//! ReferencesOptions::default(),
//! ).unwrap();
//! ```
//!
//! [`parse_core`] implements Lima Core 1.0 in full (block/flow sequences
//! and mappings, dates, numbers, quoting, `|` literal block scalars).
//! [`parse_references`] implements References 1.0 on top of it (document
//! and partial references, string interpolation, two-phase
//! forward/backward resolution).
//!
//! See <https://limaformat.dev> for the specification, and the
//! TypeScript implementation (`@limaformat/lima` on npm) for a second,
//! independently maintained reference.
//!
//! ## Conformance
//!
//! Checked against the **entire** shared conformance corpus
//! (`tests/corpus.rs`: 250 of 250 cases across both specs, 0 failing, 0
//! skipped). See each module's doc comment for scoped-down corners
//! relative to the TS source that don't affect conformance (mainly: no
//! `WeakMap`-equivalent memoization in `references.rs` — a performance
//! optimization, not a behavior).
pub use crateparse_core;
pub use crate;