Skip to main content

olean_export/
lib.rs

1//! Read Lean 4 `.olean` files directly and emit the lean4export stream, as NDJSON or in a
2//! compact binary form (blean), without starting Lean.
3#![allow(
4    clippy::missing_errors_doc,
5    clippy::redundant_pub_crate,
6    clippy::too_many_lines,
7    clippy::missing_panics_doc,
8    clippy::module_name_repetitions,
9    clippy::similar_names,
10    clippy::many_single_char_names
11)]
12
13pub mod blean;
14pub mod compare;
15mod env;
16mod error;
17mod export;
18pub mod info;
19mod inspect;
20pub mod ndjson;
21mod olean;
22pub mod record;
23pub mod statement;
24
25pub use compare::{compare, Diff};
26pub use env::{
27    resolve, search_path, Binder, Body, Const, Ctor, Defn, Env, Expr, ExprId, Exprs, Hints, Id,
28    Inductive, Kind, Level, LevelId, Name, NameId, QuotKind, Rec, Reload, Rule, Table, Theorem,
29    ANON, ZERO,
30};
31pub use error::{Error, Result};
32pub use export::{Exporter, Mark};
33pub use info::Info;
34pub use inspect::{Decl, Import, Section, Summary};
35pub use olean::{Header, SUPPORTED};
36pub use record::{Counts, Record, Sink};