4 releases

0.1.3 Sep 6, 2024
0.1.2 Jun 18, 2024
0.1.1 Jun 15, 2024
0.1.0 Jun 15, 2024

#204 in Build Utils

Download history 49/week @ 2024-07-20 43/week @ 2024-07-27 5/week @ 2024-08-03 14/week @ 2024-08-10 10/week @ 2024-08-17 8/week @ 2024-08-24 521/week @ 2024-08-31 74/week @ 2024-09-07 53/week @ 2024-09-14 48/week @ 2024-09-21 53/week @ 2024-09-28 45/week @ 2024-10-05 41/week @ 2024-10-12 23/week @ 2024-10-19 20/week @ 2024-10-26 7/week @ 2024-11-02

95 downloads per month
Used in libabort

MIT/Apache

38KB
637 lines

rustversion-detect

This crate provides a simple API for detecting the rustc compiler version.

It is primarily intended for build scripts, but is also usable at runtime.

The implementation is forked from the rustversion crate, but with proc-macro code removed.

Dependency

Add the following to your build script:

[build-dependencies]
rustversion-detect = "0.1"

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

This crate provides a simple API for detecting the rustc compiler version.

It is primarily intended for build scripts, but is also usable at runtime.

The implementation is forked from the rustversion crate, but with proc-macro code removed.

Dependency

Add the following to your build script:

[build-dependencies]
rustversion-detect = "0.1"

No runtime deps