fork/cargo

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

Weihang Lochore: Update dependencies (#16034)94f6379a6

0.93.0
9.1 KiB288 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.88"  # MSRV:3
15edition = "2024"
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 = { version = "0.12.4", features = ["simd"] }
22anstream = "0.6.20"
23anstyle = "1.0.13"
24anyhow = "1.0.100"
25base64 = "0.22.1"
26blake3 = "1.8.2"
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.5.3", path = "credential/cargo-credential-libsecret" }
31cargo-credential-macos-keychain = { version = "0.4.18", path = "credential/cargo-credential-macos-keychain" }
32cargo-credential-wincred = { version = "0.4.18", path = "credential/cargo-credential-wincred" }
33cargo-platform = { path = "crates/cargo-platform", version = "0.3.0" }
34cargo-test-macro = { version = "0.4.7", path = "crates/cargo-test-macro" }
35cargo-test-support = { version = "0.9.0", path = "crates/cargo-test-support" }
36cargo-util = { version = "0.2.25", path = "crates/cargo-util" }
37cargo-util-schemas = { version = "0.10.1", path = "crates/cargo-util-schemas" }
38cargo_metadata = "0.23.0"
39clap = "4.5.48"
40clap_complete = { version = "4.5.58", features = ["unstable-dynamic"] }
41color-print = "0.3.7"
42core-foundation = { version = "0.10.1", features = ["mac_os_10_7_support"] }
43crates-io = { version = "0.40.15", path = "crates/crates-io" }
44criterion = { version = "0.7.0", features = ["html_reports"] }
45curl = "0.4.49"
46curl-sys = "0.4.83"
47filetime = "0.2.26"
48flate2 = { version = "1.1.2", default-features = false, features = ["zlib-rs"] }
49git2 = "0.20.2"
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.73.0", default-features = false, features = ["progress-tree", "parallel", "dirwalk", "status"] }
53glob = "0.3.3"
54# Pinned due to https://github.com/sunng87/handlebars-rust/issues/711
55handlebars = { version = "=6.3.1", features = ["dir_source"] }
56hex = "0.4.3"
57hmac = "0.12.1"
58home = "0.5.11"
59http-auth = { version = "0.1.10", default-features = false }
60ignore = "0.4.23"
61im-rc = "15.1.0"
62indexmap = "2.11.4"
63itertools = "0.14.0"
64jiff = { version = "0.2.15", default-features = false, features = [ "std" ] }
65jobserver = "0.1.34"
66lazycell = "1.3.0"
67libc = "0.2.174" # Please ensure in lockfile it stays as 0.2.174 until bytecodealliance/rustix#1496 resolved
68libgit2-sys = "0.18.2"
69libloading = "0.8.9"
70memchr = "2.7.6"
71miow = "0.6.1"
72opener = "0.8.3"
73openssl = "0.10.73"
74openssl-sys = "0.9.109"
75os_info = { version = "3.12.0", default-features = false }
76pasetors = { version = "0.7.7", features = ["v3", "paserk", "std", "serde"] }
77pathdiff = "0.2.3"
78percent-encoding = "2.3.2"
79pkg-config = "0.3.32"
80proptest = "1.8.0"
81pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] }
82rand = "0.9.2"
83regex = "1.11.3"
84rusqlite = { version = "0.37.0", features = ["bundled"] }
85rustc-hash = "2.1.1"
86rustc-stable-hash = "0.1.2"
87rustfix = { version = "0.9.2", path = "crates/rustfix" }
88same-file = "1.0.6"
89schemars = "1.0.4"
90security-framework = "3.5.1"
91semver = { version = "1.0.27", features = ["serde"] }
92serde = "1.0.228"
93serde_core = "1.0.228"
94serde-untagged = "0.1.9"
95serde-value = "0.7.0"
96serde_ignored = "0.1.14"
97serde_json = "1.0.145"
98sha1 = "0.10.6"
99sha2 = "0.10.9"
100shell-escape = "0.1.5"
101similar = "2.7.0"
102supports-hyperlinks = "3.1.0"
103supports-unicode = "3.0.0"
104snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] }
105tar = { version = "0.4.44", default-features = false }
106tempfile = "3.23.0"
107thiserror = "2.0.17"
108time = { version = "0.3.44", features = ["parsing", "formatting", "serde"] }
109toml = { version = "0.9.7", default-features = false }
110toml_edit = { version = "0.23.6", features = ["serde"] }
111tracing = { 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
112tracing-chrome = "0.7.2"
113tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
114unicase = "2.8.1"
115unicode-ident = "1.0.19"
116unicode-width = "0.2.1"
117unicode-xid = "0.2.6"
118url = "2.5.7"
119varisat = "0.2.2"
120walkdir = "2.5.0"
121windows-sys = "0.61"
122winnow = "0.7.13"
123
124[workspace.lints.rust]
125rust_2018_idioms = "warn" # TODO: could this be removed?
126
127[workspace.lints.rustdoc]
128private_intra_doc_links = "allow"
129
130[workspace.lints.clippy]
131all = { level = "allow", priority = -2 }
132correctness = { level = "warn", priority = -1 }
133dbg_macro = "warn"
134disallowed_methods = "warn"
135print_stderr = "warn"
136print_stdout = "warn"
137self_named_module_files = "warn"
138
139[package]
140name = "cargo"
141version = "0.93.0"
142edition.workspace = true
143license.workspace = true
144rust-version = "1.90"  # MSRV:1
145homepage = "https://doc.rust-lang.org/cargo/index.html"
146repository.workspace = true
147documentation = "https://docs.rs/cargo"
148description = """
149Cargo, a package manager for Rust.
150"""
151
152[lib]
153name = "cargo"
154path = "src/cargo/lib.rs"
155
156[dependencies]
157annotate-snippets.workspace = true
158anstream.workspace = true
159anstyle.workspace = true
160anyhow.workspace = true
161base64.workspace = true
162blake3.workspace = true
163cargo-credential.workspace = true
164cargo-platform.workspace = true
165cargo-util-schemas.workspace = true
166cargo-util.workspace = true
167clap = { workspace = true, features = ["wrap_help"] }
168clap_complete.workspace = true
169color-print.workspace = true
170crates-io.workspace = true
171curl = { workspace = true, features = ["http2"] }
172curl-sys.workspace = true
173filetime.workspace = true
174flate2.workspace = true
175git2.workspace = true
176git2-curl.workspace = true
177gix.workspace = true
178glob.workspace = true
179hex.workspace = true
180hmac.workspace = true
181home.workspace = true
182http-auth.workspace = true
183ignore.workspace = true
184im-rc.workspace = true
185indexmap.workspace = true
186itertools.workspace = true
187jiff.workspace = true
188jobserver.workspace = true
189lazycell.workspace = true
190libgit2-sys.workspace = true
191memchr.workspace = true
192opener.workspace = true
193os_info.workspace = true
194pasetors.workspace = true
195pathdiff.workspace = true
196rand.workspace = true
197regex.workspace = true
198rusqlite.workspace = true
199rustc-hash.workspace = true
200rustc-stable-hash.workspace = true
201rustfix.workspace = true
202same-file.workspace = true
203semver.workspace = true
204serde = { workspace = true, features = ["derive"] }
205serde-untagged.workspace = true
206serde_ignored.workspace = true
207serde_json = { workspace = true, features = ["raw_value"] }
208sha1.workspace = true
209shell-escape.workspace = true
210supports-hyperlinks.workspace = true
211supports-unicode.workspace = true
212tar.workspace = true
213tempfile.workspace = true
214thiserror.workspace = true
215time.workspace = true
216toml = { workspace = true, features = ["std", "serde", "parse", "display", "preserve_order"] }
217toml_edit.workspace = true
218tracing = { workspace = true, features = ["attributes"] }
219tracing-subscriber.workspace = true
220unicase.workspace = true
221unicode-width.workspace = true
222unicode-xid.workspace = true
223url.workspace = true
224walkdir.workspace = true
225winnow.workspace = true
226
227[target.'cfg(target_has_atomic = "64")'.dependencies]
228tracing-chrome.workspace = true
229
230[target.'cfg(unix)'.dependencies]
231libc.workspace = true
232
233[target.'cfg(target_os = "linux")'.dependencies]
234cargo-credential-libsecret.workspace = true
235
236[target.'cfg(target_os = "macos")'.dependencies]
237cargo-credential-macos-keychain.workspace = true
238
239[target.'cfg(not(windows))'.dependencies]
240openssl = { workspace = true, optional = true }
241
242[target.'cfg(windows)'.dependencies]
243cargo-credential-wincred.workspace = true
244
245[target.'cfg(windows)'.dependencies.windows-sys]
246workspace = true
247features = [
248  "Win32_Foundation",
249  "Win32_Security",
250  "Win32_Storage_FileSystem",
251  "Win32_System_IO",
252  "Win32_System_Console",
253  "Win32_System_JobObjects",
254  "Win32_System_Threading",
255]
256
257[dev-dependencies]
258annotate-snippets = { workspace = true, features = ["testing-colors"] }
259cargo-test-support.workspace = true
260gix = { workspace = true, features = ["revision"] }
261# When building Cargo for tests, a safety-measure in `gix` needs to be disabled
262# to allow sending credentials over HTTP connections.
263gix-transport = { version = "0.48.0", features = ["http-client-insecure-credentials"] }
264same-file.workspace = true
265snapbox.workspace = true
266
267[build-dependencies]
268flate2.workspace = true
269tar.workspace = true
270
271[[bin]]
272name = "cargo"
273test = false
274doc = false
275
276[features]
277default = ["http-transport-curl"]
278vendored-openssl = ["openssl/vendored"]
279vendored-libgit2 = ["libgit2-sys/vendored"]
280# This is primarily used by rust-lang/rust distributing cargo the executable.
281all-static = ['vendored-openssl', 'curl/static-curl', 'curl/force-system-lib-on-osx', 'vendored-libgit2']
282# Exactly one of 'http-transport-curl' or 'http-transport-reqwest' must be enabled
283# when using Cargo as a library. By default, it is 'http-transport-curl'.
284http-transport-curl = ["gix/blocking-http-transport-curl"]
285http-transport-reqwest = ["gix/blocking-http-transport-reqwest"]
286
287[lints]
288workspace = true