]> git.lizzy.rs Git - rust.git/blob - src/tools/rustc-workspace-hack/Cargo.toml
Switch to SPDX 2.1 license expression
[rust.git] / src / tools / rustc-workspace-hack / Cargo.toml
1 [package]
2 name = "rustc-workspace-hack"
3 version = "1.0.0"
4 authors = ["Alex Crichton <alex@alexcrichton.com>"]
5 license = 'MIT OR Apache-2.0'
6 description = """
7 Hack for the compiler's own build system
8 """
9 edition = "2018"
10
11 [lib]
12 path = "lib.rs"
13
14 # For documentation about what this is and why in the world these dependencies
15 # are appearing, see `README.md`.
16
17 [build-dependencies]
18 # Currently Cargo/RLS depend on `failure` which depends on `synstructure` which
19 # enables this feature. Clippy, however, does not depend on anything that
20 # enables this feature. Enable it unconditionally.
21 syn = { version = "0.15", features = ['extra-traits'] }
22
23 [target.'cfg(windows)'.dependencies.winapi]
24 version = "0.3"
25 features = [
26   "basetsd",
27   "consoleapi",
28   "errhandlingapi",
29   "jobapi",
30   "jobapi2",
31   "knownfolders",
32   "lmcons",
33   "memoryapi",
34   "minschannel",
35   "minwinbase",
36   "ntsecapi",
37   "ntstatus",
38   "objbase",
39   "profileapi",
40   "processenv",
41   "psapi",
42   "schannel",
43   "securitybaseapi",
44   "shellapi",
45   "shlobj",
46   "sspi",
47   "synchapi",
48   "sysinfoapi",
49   "threadpoollegacyapiset",
50   "timezoneapi",
51   "userenv",
52   "winbase",
53   "wincon",
54   "wincrypt",
55 ]
56
57 [dependencies]
58 curl-sys = { version = "0.4.13", features = ["http2", "libnghttp2-sys"], optional = true }
59 parking_lot = { version = "0.7", features = ['nightly'] }
60 rand = { version = "0.6.1", features = ["i128_support"] }
61 serde = { version = "1.0.82", features = ['derive'] }
62 serde_json = { version = "1.0.31", features = ["raw_value"] }
63 smallvec = { version = "0.6", features = ['union', 'may_dangle'] }
64 scopeguard = { version = "0.3.3", features = ["use_std", "default"]}
65 byteorder = { version = "1.2.7", features = ["i128"]}
66
67
68 [target.'cfg(not(windows))'.dependencies]
69 openssl = { version = "0.10.12", optional = true }
70
71
72 [features]
73 all-static = ['openssl/vendored', 'curl-sys/static-curl', 'curl-sys/force-system-lib-on-osx']