1 unstable release

0.1.0 Aug 3, 2020

#600 in Programming languages

Download history 59/week @ 2024-01-04 112/week @ 2024-01-11 174/week @ 2024-01-18 263/week @ 2024-01-25 116/week @ 2024-02-01 153/week @ 2024-02-08 177/week @ 2024-02-15 66/week @ 2024-02-22 292/week @ 2024-02-29 73/week @ 2024-03-07 117/week @ 2024-03-14 809/week @ 2024-03-21 141/week @ 2024-03-28 133/week @ 2024-04-04 78/week @ 2024-04-11 65/week @ 2024-04-18

494 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