fork/cargo

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

Weihang Lobuild: remove duplicate dependency, consolidate over unicode-ident (#16137)211aad4fb

home-0.5.12
9.1 KiB287 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.20"
116unicode-width = "0.2.1"
117url = "2.5.7"
118varisat = "0.2.2"
119walkdir = "2.5.0"
120windows-sys = "0.61"
121winnow = "0.7.13"
122
123[workspace.lints.rust]
124rust_2018_idioms = "warn" # TODO: could this be removed?
125
126[workspace.lints.rustdoc]
127private_intra_doc_links = "allow"
128
129[workspace.lints.clippy]
130all = { level = "allow", priority = -2 }
131correctness = { level = "warn", priority = -1 }
132dbg_macro = "warn"
133disallowed_methods = "warn"
134print_stderr = "warn"
135print_stdout = "warn"
136self_named_module_files = "warn"
137
138[package]
139name = "cargo"
140version = "0.93.0"
141edition.workspace = true
142license.workspace = true
143rust-version = "1.90"  # MSRV:1
144homepage = "https://doc.rust-lang.org/cargo/index.html"
145repository.workspace = true
146documentation = "https://docs.rs/cargo"
147description = """
148Cargo, a package manager for Rust.
149"""
150
151[lib]
152name = "cargo"
153path = "src/cargo/lib.rs"
154
155[dependencies]
156annotate-snippets.workspace = true
157anstream.workspace = true
158anstyle.workspace = true
159anyhow.workspace = true
160base64.workspace = true
161blake3.workspace = true
162cargo-credential.workspace = true
163cargo-platform.workspace = true
164cargo-util-schemas.workspace = true
165cargo-util.workspace = true
166clap = { workspace = true, features = ["wrap_help"] }
167clap_complete.workspace = true
168color-print.workspace = true
169crates-io.workspace = true
170curl = { workspace = true, features = ["http2"] }
171curl-sys.workspace = true
172filetime.workspace = true
173flate2.workspace = true
174git2.workspace = true
175git2-curl.workspace = true
176gix.workspace = true
177glob.workspace = true
178hex.workspace = true
179hmac.workspace = true
180home.workspace = true
181http-auth.workspace = true
182ignore.workspace = true
183im-rc.workspace = true
184indexmap.workspace = true
185itertools.workspace = true
186jiff.workspace = true
187jobserver.workspace = true
188lazycell.workspace = true
189libgit2-sys.workspace = true
190memchr.workspace = true
191opener.workspace = true
192os_info.workspace = true
193pasetors.workspace = true
194pathdiff.workspace = true
195rand.workspace = true
196regex.workspace = true
197rusqlite.workspace = true
198rustc-hash.workspace = true
199rustc-stable-hash.workspace = true
200rustfix.workspace = true
201same-file.workspace = true
202semver.workspace = true
203serde = { workspace = true, features = ["derive"] }
204serde-untagged.workspace = true
205serde_ignored.workspace = true
206serde_json = { workspace = true, features = ["raw_value"] }
207sha1.workspace = true
208shell-escape.workspace = true
209supports-hyperlinks.workspace = true
210supports-unicode.workspace = true
211tar.workspace = true
212tempfile.workspace = true
213thiserror.workspace = true
214time.workspace = true
215toml = { workspace = true, features = ["std", "serde", "parse", "display", "preserve_order"] }
216toml_edit.workspace = true
217tracing = { workspace = true, features = ["attributes"] }
218tracing-subscriber.workspace = true
219unicase.workspace = true
220unicode-width.workspace = true
221unicode-ident.workspace = true
222url.workspace = true
223walkdir.workspace = true
224winnow.workspace = true
225
226[target.'cfg(target_has_atomic = "64")'.dependencies]
227tracing-chrome.workspace = true
228
229[target.'cfg(unix)'.dependencies]
230libc.workspace = true
231
232[target.'cfg(target_os = "linux")'.dependencies]
233cargo-credential-libsecret.workspace = true
234
235[target.'cfg(target_os = "macos")'.dependencies]
236cargo-credential-macos-keychain.workspace = true
237
238[target.'cfg(not(windows))'.dependencies]
239openssl = { workspace = true, optional = true }
240
241[target.'cfg(windows)'.dependencies]
242cargo-credential-wincred.workspace = true
243
244[target.'cfg(windows)'.dependencies.windows-sys]
245workspace = true
246features = [
247  "Win32_Foundation",
248  "Win32_Security",
249  "Win32_Storage_FileSystem",
250  "Win32_System_IO",
251  "Win32_System_Console",
252  "Win32_System_JobObjects",
253  "Win32_System_Threading",
254]
255
256[dev-dependencies]
257annotate-snippets = { workspace = true, features = ["testing-colors"] }
258cargo-test-support.workspace = true
259gix = { workspace = true, features = ["revision"] }
260# When building Cargo for tests, a safety-measure in `gix` needs to be disabled
261# to allow sending credentials over HTTP connections.
262gix-transport = { version = "0.48.0", features = ["http-client-insecure-credentials"] }
263same-file.workspace = true
264snapbox.workspace = true
265
266[build-dependencies]
267flate2.workspace = true
268tar.workspace = true
269
270[[bin]]
271name = "cargo"
272test = false
273doc = false
274
275[features]
276default = ["http-transport-curl"]
277vendored-openssl = ["openssl/vendored"]
278vendored-libgit2 = ["libgit2-sys/vendored"]
279# This is primarily used by rust-lang/rust distributing cargo the executable.
280all-static = ['vendored-openssl', 'curl/static-curl', 'curl/force-system-lib-on-osx', 'vendored-libgit2']
281# Exactly one of 'http-transport-curl' or 'http-transport-reqwest' must be enabled
282# when using Cargo as a library. By default, it is 'http-transport-curl'.
283http-transport-curl = ["gix/blocking-http-transport-curl"]
284http-transport-reqwest = ["gix/blocking-http-transport-reqwest"]
285
286[lints]
287workspace = true