fork/cargo

git clone https://git.julia.blue/fork/cargo

Ed PageImplement RFC3695: Allow boolean literals as cfg predicates (#14649)69eeb6ad9

0.89.0
8.4 KiB278 linesraw
1[workspace]
2resolver = "2"
3members = [
4  "crates/*",
5  "credential/*",
6  "benches/benchsuite",
7  "benches/capture",
8]
9exclude = [
10  "target/", # exclude bench testing
11]
12
13[workspace.package]
14rust-version = "1.83"  # MSRV:3
15edition = "2021"
16license = "MIT OR Apache-2.0"
17homepage = "https://github.com/rust-lang/cargo"
18repository = "https://github.com/rust-lang/cargo"
19
20[workspace.dependencies]
21annotate-snippets = "0.11.5"
22anstream = "0.6.18"
23anstyle = "1.0.10"
24anyhow = "1.0.95"
25base64 = "0.22.1"
26blake3 = "1.5.5"
27build-rs = { version = "0.3.1", path = "crates/build-rs" }
28cargo = { path = "" }
29cargo-credential = { version = "0.4.2", path = "credential/cargo-credential" }
30cargo-credential-libsecret = { version = "0.4.13", path = "credential/cargo-credential-libsecret" }
31cargo-credential-macos-keychain = { version = "0.4.13", path = "credential/cargo-credential-macos-keychain" }
32cargo-credential-wincred = { version = "0.4.13", path = "credential/cargo-credential-wincred" }
33cargo-platform = { path = "crates/cargo-platform", version = "0.3.0" }
34cargo-test-macro = { version = "0.4.2", path = "crates/cargo-test-macro" }
35cargo-test-support = { version = "0.7.1", path = "crates/cargo-test-support" }
36cargo-util = { version = "0.2.20", path = "crates/cargo-util" }
37cargo-util-schemas = { version = "0.8.2", path = "crates/cargo-util-schemas" }
38cargo_metadata = "0.19.1"
39clap = "4.5.28"
40clap_complete = { version = "4.5.44", features = ["unstable-dynamic"] }
41color-print = "0.3.7"
42core-foundation = { version = "0.10.0", features = ["mac_os_10_7_support"] }
43crates-io = { version = "0.40.10", path = "crates/crates-io" }
44criterion = { version = "0.5.1", features = ["html_reports"] }
45curl = "0.4.47"
46curl-sys = "0.4.79"
47filetime = "0.2.25"
48flate2 = { version = "1.1.1", default-features = false, features = ["zlib-rs"] }
49git2 = "0.20.0"
50git2-curl = "0.21.0"
51# When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail.
52gix = { version = "0.71.0", default-features = false, features = ["blocking-http-transport-curl", "progress-tree", "parallel", "dirwalk"] }
53glob = "0.3.2"
54handlebars = { version = "6.3.1", features = ["dir_source"] }
55hex = "0.4.3"
56hmac = "0.12.1"
57home = "0.5.11"
58http-auth = { version = "0.1.10", default-features = false }
59ignore = "0.4.23"
60im-rc = "15.1.0"
61indexmap = "2.7.1"
62itertools = "0.14.0"
63jiff = { version = "0.2.3", default-features = false, features = [ "std" ] }
64jobserver = "0.1.32"
65lazycell = "1.3.0"
66libc = "0.2.169"
67libgit2-sys = "0.18.0"
68libloading = "0.8.6"
69memchr = "2.7.4"
70miow = "0.6.0"
71opener = "0.7.2"
72openssl = "0.10.72"
73openssl-sys = "0.9.92"
74os_info = { version = "3.10.0", default-features = false }
75pasetors = { version = "0.7.2", features = ["v3", "paserk", "std", "serde"] }
76pathdiff = "0.2.3"
77percent-encoding = "2.3.1"
78pkg-config = "0.3.31"
79proptest = "1.6.0"
80pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] }
81rand = "0.9.0"
82regex = "1.11.1"
83rusqlite = { version = "0.34.0", features = ["bundled"] }
84rustc-hash = "2.1.1"
85rustc-stable-hash = "0.1.2"
86rustfix = { version = "0.9.0", path = "crates/rustfix" }
87same-file = "1.0.6"
88schemars = "1.0.0-alpha.17"
89security-framework = "3.2.0"
90semver = { version = "1.0.25", features = ["serde"] }
91serde = "1.0.217"
92serde-untagged = "0.1.6"
93serde-value = "0.7.0"
94serde_ignored = "0.1.10"
95serde_json = "1.0.138"
96sha1 = "0.10.6"
97sha2 = "0.10.8"
98shell-escape = "0.1.5"
99similar = "2.7.0"
100supports-hyperlinks = "3.1.0"
101supports-unicode = "3.0.0"
102snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] }
103tar = { version = "0.4.43", default-features = false }
104tempfile = "3.16.0"
105thiserror = "2.0.11"
106time = { version = "0.3.37", features = ["parsing", "formatting", "serde"] }
107toml = "0.8.20"
108toml_edit = { version = "0.22.23", features = ["serde"] }
109tracing = { version = "0.1.41", default-features = false, features = ["std"] } # be compatible with rustc_log: https://github.com/rust-lang/rust/blob/e51e98dde6a/compiler/rustc_log/Cargo.toml#L9
110tracing-chrome = "0.7.2"
111tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
112unicase = "2.8.1"
113unicode-ident = "1.0.16"
114unicode-width = "0.2.0"
115unicode-xid = "0.2.6"
116url = "2.5.4"
117varisat = "0.2.2"
118walkdir = "2.5.0"
119windows-sys = "0.59"
120
121[workspace.lints.rust]
122rust_2018_idioms = "warn" # TODO: could this be removed?
123
124[workspace.lints.rustdoc]
125private_intra_doc_links = "allow"
126
127[workspace.lints.clippy]
128all = { level = "allow", priority = -2 }
129correctness = { level = "warn", priority = -1 }
130dbg_macro = "warn"
131disallowed_methods = "warn"
132print_stderr = "warn"
133print_stdout = "warn"
134self_named_module_files = "warn"
135
136[package]
137name = "cargo"
138version = "0.89.0"
139edition.workspace = true
140license.workspace = true
141rust-version = "1.86"  # MSRV:1
142homepage = "https://doc.rust-lang.org/cargo/index.html"
143repository.workspace = true
144documentation = "https://docs.rs/cargo"
145description = """
146Cargo, a package manager for Rust.
147"""
148
149[lib]
150name = "cargo"
151path = "src/cargo/lib.rs"
152
153[dependencies]
154annotate-snippets.workspace = true
155anstream.workspace = true
156anstyle.workspace = true
157anyhow.workspace = true
158base64.workspace = true
159blake3.workspace = true
160cargo-credential.workspace = true
161cargo-platform.workspace = true
162cargo-util-schemas.workspace = true
163cargo-util.workspace = true
164clap = { workspace = true, features = ["wrap_help"] }
165clap_complete.workspace = true
166color-print.workspace = true
167crates-io.workspace = true
168curl = { workspace = true, features = ["http2"] }
169curl-sys.workspace = true
170filetime.workspace = true
171flate2.workspace = true
172git2.workspace = true
173git2-curl.workspace = true
174gix.workspace = true
175glob.workspace = true
176hex.workspace = true
177hmac.workspace = true
178home.workspace = true
179http-auth.workspace = true
180ignore.workspace = true
181im-rc.workspace = true
182indexmap.workspace = true
183itertools.workspace = true
184jiff.workspace = true
185jobserver.workspace = true
186lazycell.workspace = true
187libgit2-sys.workspace = true
188memchr.workspace = true
189opener.workspace = true
190os_info.workspace = true
191pasetors.workspace = true
192pathdiff.workspace = true
193rand.workspace = true
194regex.workspace = true
195rusqlite.workspace = true
196rustc-hash.workspace = true
197rustc-stable-hash.workspace = true
198rustfix.workspace = true
199same-file.workspace = true
200semver.workspace = true
201serde = { workspace = true, features = ["derive"] }
202serde-untagged.workspace = true
203serde_ignored.workspace = true
204serde_json = { workspace = true, features = ["raw_value"] }
205sha1.workspace = true
206shell-escape.workspace = true
207supports-hyperlinks.workspace = true
208supports-unicode.workspace = true
209tar.workspace = true
210tempfile.workspace = true
211thiserror.workspace = true
212time.workspace = true
213toml.workspace = true
214toml_edit.workspace = true
215tracing = { workspace = true, features = ["attributes"] }
216tracing-subscriber.workspace = true
217unicase.workspace = true
218unicode-width.workspace = true
219url.workspace = true
220walkdir.workspace = true
221
222[target.'cfg(target_has_atomic = "64")'.dependencies]
223tracing-chrome.workspace = true
224
225[target.'cfg(unix)'.dependencies]
226libc.workspace = true
227
228[target.'cfg(target_os = "linux")'.dependencies]
229cargo-credential-libsecret.workspace = true
230
231[target.'cfg(target_os = "macos")'.dependencies]
232cargo-credential-macos-keychain.workspace = true
233
234[target.'cfg(not(windows))'.dependencies]
235openssl = { workspace = true, optional = true }
236
237[target.'cfg(windows)'.dependencies]
238cargo-credential-wincred.workspace = true
239
240[target.'cfg(windows)'.dependencies.windows-sys]
241workspace = true
242features = [
243  "Win32_Foundation",
244  "Win32_Security",
245  "Win32_Storage_FileSystem",
246  "Win32_System_IO",
247  "Win32_System_Console",
248  "Win32_System_JobObjects",
249  "Win32_System_Threading",
250]
251
252[dev-dependencies]
253annotate-snippets = { workspace = true, features = ["testing-colors"] }
254cargo-test-support.workspace = true
255gix = { workspace = true, features = ["revision"] }
256# When building Cargo for tests, a safety-measure in `gix` needs to be disabled
257# to allow sending credentials over HTTP connections.
258gix-transport = { version = "0.46.0", features = ["http-client-insecure-credentials"] }
259same-file.workspace = true
260snapbox.workspace = true
261
262[build-dependencies]
263flate2.workspace = true
264tar.workspace = true
265
266[[bin]]
267name = "cargo"
268test = false
269doc = false
270
271[features]
272vendored-openssl = ["openssl/vendored"]
273vendored-libgit2 = ["libgit2-sys/vendored"]
274# This is primarily used by rust-lang/rust distributing cargo the executable.
275all-static = ['vendored-openssl', 'curl/static-curl', 'curl/force-system-lib-on-osx', 'vendored-libgit2']
276
277[lints]
278workspace = true