Skip to main content

decl_lang/
lib.rs

1// The crate's page is the README (crates.io shows it; docs.rs renders it
2// here, its Rust examples compiled as doctests); every public item beneath
3// it is documented, and the compiler holds the crate to that.
4#![doc = include_str!("../README.md")]
5#![warn(missing_docs)]
6pub mod api;
7pub mod ast;
8pub mod checker;
9pub mod cli;
10pub mod conformance;
11pub mod engine;
12pub mod fmt;
13pub mod infer;
14pub mod lsp;
15pub mod module;
16pub mod package;
17pub mod parse;
18pub mod pipeline;
19pub mod qengine;
20pub mod render;
21pub mod repl;
22#[cfg(feature = "runtime-diagnostics")]
23pub mod retention_diagnostics;
24pub mod semantics;
25pub mod session;
26pub mod subsume;
27pub mod yaml;
28
29// the high-level API, in the command line's vocabulary
30pub use api::{
31    check, evaluate, evaluate_source, format_source, render, to_json, to_yaml, validate, DeclError,
32    Diagnostic, Document, EvaluateOptions, RenderOptions, Rendered, Report, TemplateSource,
33};
34
35#[cfg(feature = "runtime-diagnostics")]
36pub mod evaluation_diagnostics;
37
38#[cfg(feature = "runtime-diagnostics")]
39pub mod expression_diagnostics;
40
41#[cfg(feature = "runtime-diagnostics")]
42pub mod root_binding_diagnostics;
43
44#[cfg(feature = "runtime-diagnostics")]
45pub mod phase_events;
46
47#[cfg(feature = "runtime-diagnostics")]
48pub mod allocation_diagnostics;
49
50#[cfg(feature = "serialization-census")]
51pub mod serialization_diagnostics;