rucc_ast/lib.rs
1//! The arena-allocated AST and its printer.
2//!
3//! Design: `spec/06-lexer-and-parser.md`. Layer rank 6, see `spec/18-package-layout.md`.
4//!
5//! # Status
6//!
7//! Not implemented. This crate exists from the first commit so that the layer rank it holds
8//! is real and `cargo xtask layers` has something to check. The work lands in M2.
9//!
10//! Every crate in the workspace is published, and publishing implies a promise. This one is
11//! tier 3: its Rust API is explicitly unstable and will change without a major version bump.
12//! Depend on the `rucc` binary's behaviour, not on this.
13
14#![doc(html_root_url = "https://docs.rs/rucc-ast/0.2.2")]
15
16/// The milestone in `spec/17-milestones.md` that fills this crate in.
17pub const MILESTONE: &str = "M2";
18
19#[cfg(test)]
20mod tests {
21 #[test]
22 fn milestone_is_recorded() {
23 assert!(super::MILESTONE.starts_with('M'));
24 }
25}