pub fn version_matches(
current_version: &str,
min_version: Option<&str>,
max_version: Option<&str>,
) -> boolExpand description
What: Check if current version matches the version range.
Inputs:
current_version: Current app version (e.g., “0.6.0”).min_version: Optional minimum version (inclusive).max_version: Optional maximum version (inclusive).
Output:
trueif current version is within the range,falseotherwise.
Details:
- If
min_versionis None, no lower bound check. - If
max_versionis None, no upper bound check. - Both bounds are inclusive.