Registry / utility / rustversion

rustversion

JSON →
library1.0.22rscratesunverified

A procedural macro for conditional compilation based on the Rust compiler version.

# Cargo.toml [dependencies] rustversion = "1.0.22"
INSTALL
IMPORT
SIG · RUSTVERSION
R
rustversion
utilityrustv1.0.22
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.

rustversion
use rustversion;

Use the `attr` macro to conditionally apply attributes based on Rust version.

use rustversion::attr; #[attr(1.50, deprecated = "use newer version")] pub fn old_function() {}
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.22latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
14
OpenAI (training)
1
Resources
rustversion — cargo add rustversion · libregistry