Skip to main content

Crate leo3_build_config

Crate leo3_build_config 

Source
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§

errors
Custom error types for leo3-build-config.
impl_
Core implementation for leo3-build-config.

Functions§

get_lean_config
Detect Lean4 configuration (cached).
get_lean_config_stringDeprecated
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 from leo3-ffi.