pub fn validate_project_runtime(
repo_root: &str,
stack: &ProjectStack,
actual: &str,
) -> VersionReportExpand description
Validates an installed version against a repository’s own requirements
files (engines.node, requires-python, rust-toolchain) in addition
to the spec thresholds.
If the referenced files are absent, this falls back to the same logic as
validate_runtime_version.
use limitless_cli::models::{CheckStatus, ProjectStack};
use limitless_cli::modules::runtime_validator::validate_project_runtime;
// This crate's Cargo.toml has no rust-version pin, so 1.56+ passes.
let report = validate_project_runtime(
env!("CARGO_MANIFEST_DIR"),
&ProjectStack::Rust { version: String::new() },
"1.85.0",
);
assert_eq!(report.status, CheckStatus::Pass);