1 unstable release

0.1.0 Aug 3, 2020

#573 in Programming languages

Download history 139/week @ 2023-12-05 174/week @ 2023-12-12 17/week @ 2023-12-19 164/week @ 2024-01-02 12/week @ 2024-01-09 222/week @ 2024-01-16 175/week @ 2024-01-23 193/week @ 2024-01-30 143/week @ 2024-02-06 219/week @ 2024-02-13 61/week @ 2024-02-20 203/week @ 2024-02-27 171/week @ 2024-03-05 89/week @ 2024-03-12 652/week @ 2024-03-19

1,120 downloads per month
Used in 5 crates (3 directly)

MIT/Apache

10KB
179 lines

cc-version

cc version detection for build.rs

Actions Status Crates.io Docs.rs

Usage

[build-dependencies]
cc-version = "0.1.0"

Example

use cc_version::cc_version;

fn main() {
    let builder = cc::Build::new();
    let tool = builder.get_compiler();
    let version = cc_version(&tool).unwrap();
    println!("cargo:warning=cc version {} is detected.", version);
}

License

Licensed under either of

at your option.

Contribution

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

Dependencies

~0.4–1MB
~21K SLoC