1[package]
2name = "cc"
3version = "1.1.31"
4authors = ["Alex Crichton <alex@alexcrichton.com>"]
5license = "MIT OR Apache-2.0"
6repository = "https://github.com/rust-lang/cc-rs"
7homepage = "https://github.com/rust-lang/cc-rs"
8documentation = "https://docs.rs/cc"
9description = """
10A build-time dependency for Cargo build scripts to assist in invoking the native
11C compiler to compile native C code into a static archive to be linked into Rust
12code.
13"""
14keywords = ["build-dependencies"]
15readme = "README.md"
16categories = ["development-tools::build-utils"]
17# The binary target is only used by tests.
18exclude = ["/.github", "tests", "src/bin"]
19edition = "2018"
20rust-version = "1.63"
21
22[dependencies]
23jobserver = { version = "0.1.30", default-features = false, optional = true }
24shlex = "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"`.
29libc = { version = "0.2.62", default-features = false, optional = true }
30
31[features]
32parallel = ["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.
35jobserver = []
36
37[dev-dependencies]
38tempfile = "3"
39
40[workspace]
41members = [
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]
49cc = { path = "." }
50