pub struct CapabilityManifest {
pub primary_dylib: PathBuf,
pub package: String,
pub module: String,
pub dependencies: Vec<LeanLibraryDependency>,
pub lean_version: Option<String>,
pub resolved_lean_version: Option<String>,
pub lean_header_sha256: Option<String>,
}Expand description
Parsed Lean capability manifest.
The shape downstream build.rs emits through
lean-toolchain::CargoLeanCapability. The parser performs only schema-shape
validation; semantic checks live in check_static and the runtime
preflight in lean-rs.
Fields§
§primary_dylib: PathBufPath to the primary capability dylib.
package: StringLake package name used by the root module initializer.
module: StringRoot Lean module name initialized by Rust.
dependencies: Vec<LeanLibraryDependency>Dependency dylibs that must be opened before the primary.
lean_version: Option<String>Lean version recorded by the build script, if any.
resolved_lean_version: Option<String>Resolved Lean toolchain version, if any.
lean_header_sha256: Option<String>SHA-256 of the Lean header used to build the capability, if any.
Implementations§
Trait Implementations§
Source§impl Clone for CapabilityManifest
impl Clone for CapabilityManifest
Source§fn clone(&self) -> CapabilityManifest
fn clone(&self) -> CapabilityManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapabilityManifest
impl Debug for CapabilityManifest
Source§impl PartialEq for CapabilityManifest
impl PartialEq for CapabilityManifest
Source§fn eq(&self, other: &CapabilityManifest) -> bool
fn eq(&self, other: &CapabilityManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CapabilityManifest
impl StructuralPartialEq for CapabilityManifest
Auto Trait Implementations§
impl Freeze for CapabilityManifest
impl RefUnwindSafe for CapabilityManifest
impl Send for CapabilityManifest
impl Sync for CapabilityManifest
impl Unpin for CapabilityManifest
impl UnsafeUnpin for CapabilityManifest
impl UnwindSafe for CapabilityManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more