Skip to main content

validate_floor_applicability

Function validate_floor_applicability 

Source
pub fn validate_floor_applicability(
    floor: &CompatibilityFloor,
    strategy: BuildStrategy,
    triple: &str,
) -> Result<(), FloorApplicabilityError>
Expand description

Whether the declared compatibility floor applies to a target triple and a build strategy.

This is the single producer-side floor-applicability rule. It composes the two halves of the rule: a glibc floor requires a -linux-gnu triple and a macOS floor requires an -apple-darwin triple, and a macOS floor is incompatible with a cargo-zigbuild build.

eggpack-ci applies it to a projected plan instead of re-deriving the floor rules.