Skip to main content

aura_lang/
lib.rs

1// Diagnostic is deliberately passed by value: errors are the cold path, boxing
2// would complicate every signature for a micro-optimization.
3#![allow(clippy::result_large_err)]
4// Environment uses RefCell per the D9 design (single-threaded frame construction,
5// see eval/env.rs); Arc was chosen for future domain-level parallelism.
6#![allow(clippy::arc_with_non_send_sync)]
7
8/// The stdlib surface as an Aura manifest: every method's parameters, return
9/// type and one-line description, grouped by receiver.
10///
11/// It describes the language rather than any one tool, so it lives here and is
12/// read by everything that needs to talk about the standard library — the
13/// language server's completion database, and `aura docs --agent`. Keeping one
14/// copy is the point: a test checks it against the real method registry, and a
15/// second copy would only be checked by nobody.
16pub const STDLIB_MANIFEST: &str = include_str!("../stdlib.aura");
17
18pub mod agentdocs;
19pub mod analysis;
20pub mod codegen;
21pub mod error;
22pub mod eval;
23pub mod facade;
24pub mod fmt;
25pub mod lexer;
26pub mod parser;
27pub mod resolve;
28pub mod serialize;
29pub mod source;
30pub mod span;
31pub mod vfs;