Registry / utility / version-check

version-check

JSON →
library0.9.5rscratesunverified

Tiny crate to check the version of the installed/running rustc.

# Cargo.toml [dependencies] version_check = "0.9.5"
INSTALL
IMPORT
SIG · VERSION-CHECK
V
version-check
utilityrustv0.9.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

is_min_version
✓ use version_check::is_min_version;

Checks if the installed rustc version is at least 1.60.0.

use version_check::is_min_version; fn main() { if is_min_version("1.60.0") { println!("rustc >= 1.60.0"); } else { println!("rustc < 1.60.0"); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
23
OpenAI (training)
1
Resources
version-check — cargo add version-check · libregistry