pub struct FluxMetadata {Show 13 fields
pub enabled: bool,
pub include: Option<Vec<String>>,
pub check_overflow: Option<OverflowMode>,
pub no_panic: Option<bool>,
pub allow_uninterpreted_cast: Option<bool>,
pub allow_raw_deref: Option<RawDerefMode>,
pub lean: Option<LeanMode>,
pub solver: Option<SmtSolver>,
pub scrape_quals: Option<bool>,
pub uif_ops: Option<UifOps>,
pub trusted: Trusted,
pub trusted_impl: TrustedImpl,
pub ignore: Ignore,
}Expand description
The [package.metadata.flux] table in Cargo.toml.
The table describes properties of the crate, e.g., which files are verified and under which
semantics. Settings controlling how Flux runs belong in .flux/config.toml (see config).
Fields§
§enabled: boolWhether the package is checked by Flux
include: Option<Vec<String>>If present, only check files that match any of the glob patterns. Patterns are checked relative to the location of the manifest file.
check_overflow: Option<OverflowMode>Overflow checking mode
no_panic: Option<bool>If present, every function in the crate is implicitly labeled with a no_panic by default.
This means that the only way a function can panic is if it calls an external function
without this attribute.
allow_uninterpreted_cast: Option<bool>Enable uninterpreted casts
allow_raw_deref: Option<RawDerefMode>Whether to allow raw pointer dereferences
lean: Option<LeanMode>Lean mode
solver: Option<SmtSolver>The solver used to verify the crate
scrape_quals: Option<bool>Enable qualifier scrapping in fixpoint
uif_ops: Option<UifOps>Binary operators to encode as uninterpreted functions
trusted: Trusted§trusted_impl: TrustedImpl§ignore: IgnoreImplementations§
Source§impl FluxMetadata
impl FluxMetadata
Sourcepub fn from_package(package: &Package) -> Result<FluxMetadata>
pub fn from_package(package: &Package) -> Result<FluxMetadata>
Reads the [package.metadata.flux] table of package.