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;
14mod env;
15mod error;
16mod export;
17pub mod info;
18mod inspect;
19pub mod ndjson;
20mod olean;
21pub mod record;
22
23pub use env::{
24    resolve, search_path, Binder, Body, Const, Ctor, Defn, Env, Expr, ExprId, Exprs, Hints, Id,
25    Inductive, Kind, Level, LevelId, Name, NameId, QuotKind, Rec, Reload, Rule, Table, ANON, ZERO,
26};
27pub use error::{Error, Result};
28pub use export::{Exporter, Mark};
29pub use info::Info;
30pub use inspect::{Decl, Import, Section, Summary};
31pub use olean::{Header, SUPPORTED};
32pub use record::{Counts, Record, Sink};