Registry / utility / rustc-version

rustc-version

JSON →
library0.4.1rscratesunverified

A library for querying the version of an installed rustc compiler.

# Cargo.toml [dependencies] rustc_version = "0.4.1"
INSTALL
IMPORT
SIG · RUSTC-VERSION
R
rustc-version
utilityrustv0.4.1
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.

version
use rustc_version::version;

Gets the current rustc version.

use rustc_version::version; fn main() { let ver = version().unwrap(); println!("Rustc version: {}", ver); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
rustc-version — cargo add rustc-version · libregistry