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

#207 in Build Utils

Download history 404/week @ 2024-06-14 20/week @ 2024-06-21 2/week @ 2024-06-28 5/week @ 2024-07-05 44/week @ 2024-07-12 43/week @ 2024-07-19 47/week @ 2024-07-26 8/week @ 2024-08-02 13/week @ 2024-08-09 11/week @ 2024-08-16 8/week @ 2024-08-23 5/week @ 2024-08-30 585/week @ 2024-09-06 47/week @ 2024-09-13

646 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