Expand description
Build-time configuration for Leo3 (Rust-Lean4 bindings).
This crate provides functionality to detect Lean4 installations and configure build settings appropriately. It should be called from build scripts of crates that depend on leo3.
Re-exports§
pub use impl_::LeanAllocator;pub use impl_::LeanConfig;pub use impl_::LeanConfigSource;pub use impl_::LeanVersion;pub use impl_::ResolutionAttempt;pub use impl_::ResolutionError;pub use impl_::ResolvedLeanConfig;
Modules§
Functions§
- get_
lean_ config - Detect Lean4 configuration (cached).
- get_
lean_ config_ string Deprecated - Detect Lean4 configuration (cached) and stringify any resolution error.
- get_
lean_ config_ with_ source - Detect Lean4 configuration (cached), returning the resolution source.
- resolve_
lean_ config - Detect Lean4 configuration (cached) with a typed error.
- use_
leo3_ cfgs - Main entry point: adds all Leo3 configuration to the current compilation.
- use_
upstream_ leo3_ cfgs - Like
use_leo3_cfgs, but only accepts config propagated fromleo3-ffi.