1 | [package] |
2 | name = "cc" |
3 | version = "1.1.31" |
4 | authors = ["Alex Crichton <alex@alexcrichton.com>" ] |
5 | license = "MIT OR Apache-2.0" |
6 | repository = "https://github.com/rust-lang/cc-rs" |
7 | homepage = "https://github.com/rust-lang/cc-rs" |
8 | documentation = "https://docs.rs/cc" |
9 | description = "" " |
10 | A build-time dependency for Cargo build scripts to assist in invoking the native |
11 | C compiler to compile native C code into a static archive to be linked into Rust |
12 | code. |
13 | " "" |
14 | keywords = ["build-dependencies" ] |
15 | readme = "README.md" |
16 | categories = ["development-tools::build-utils" ] |
17 | # The binary target is only used by tests. |
18 | exclude = ["/.github" , "tests" , "src/bin" ] |
19 | edition = "2018" |
20 | rust-version = "1.63" |
21 | |
22 | [dependencies] |
23 | jobserver = { version = "0.1.30" , default-features = false, optional = true } |
24 | shlex = "1.3.0" |
25 | |
26 | [target.'cfg(unix)'.dependencies] |
27 | # Don't turn on the feature "std" for this, see https://github.com/rust-lang/cargo/issues/4866 |
28 | # which is still an issue with `resolver = "1"`. |
29 | libc = { version = "0.2.62" , default-features = false, optional = true } |
30 | |
31 | [features] |
32 | parallel = ["dep:libc" , "dep:jobserver" ] |
33 | # This is a placeholder feature for people who incorrectly used `cc` with `features = ["jobserver"]` |
34 | # so that they aren't broken. This has never enabled `parallel`, so we won't do that. |
35 | jobserver = [] |
36 | |
37 | [dev-dependencies] |
38 | tempfile = "3" |
39 | |
40 | [workspace] |
41 | members = [ |
42 | "dev-tools/cc-test" , |
43 | "dev-tools/gen-target-info" , |
44 | "dev-tools/gen-windows-sys-binding" , |
45 | "dev-tools/wasm32-wasip1-threads-test" , |
46 | ] |
47 | |
48 | [patch.crates-io] |
49 | cc = { path = "." } |
50 | |