fork/cargo

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

Weihang LoAllow using Cargo-as-a-library with gix's reqwest backend (#15653)9b296973b

0.91.0
8.9 KiB285 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.86"  # 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 = "0.11.5"
22anstream = "0.6.19"
23anstyle = "1.0.11"
24anyhow = "1.0.98"
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.0", path = "credential/cargo-credential-libsecret" }
31cargo-credential-macos-keychain = { version = "0.4.15", path = "credential/cargo-credential-macos-keychain" }
32cargo-credential-wincred = { version = "0.4.15", path = "credential/cargo-credential-wincred" }
33cargo-platform = { path = "crates/cargo-platform", version = "0.3.0" }
34cargo-test-macro = { version = "0.4.4", path = "crates/cargo-test-macro" }
35cargo-test-support = { version = "0.8.0", path = "crates/cargo-test-support" }
36cargo-util = { version = "0.2.22", path = "crates/cargo-util" }
37cargo-util-schemas = { version = "0.10.0", path = "crates/cargo-util-schemas" }
38cargo_metadata = "0.20.0"
39clap = "4.5.40"
40clap_complete = { version = "4.5.54", 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.12", path = "crates/crates-io" }
44criterion = { version = "0.6.0", features = ["html_reports"] }
45curl = "0.4.48"
46curl-sys = "0.4.82"
47filetime = "0.2.25"
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.2"
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.10.0"
63itertools = "0.14.0"
64jiff = { version = "0.2.15", default-features = false, features = [ "std" ] }
65jobserver = "0.1.33"
66lazycell = "1.3.0"
67libc = "0.2.174"
68libgit2-sys = "0.18.2"
69libloading = "0.8.8"
70memchr = "2.7.5"
71miow = "0.6.0"
72opener = "0.8.2"
73openssl = "0.10.73"
74openssl-sys = "0.9.109"
75os_info = { version = "3.12.0", default-features = false }
76pasetors = { version = "0.7.6", features = ["v3", "paserk", "std", "serde"] }
77pathdiff = "0.2.3"
78percent-encoding = "2.3.1"
79pkg-config = "0.3.32"
80proptest = "1.7.0"
81pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] }
82rand = "0.9.1"
83regex = "1.11.1"
84rusqlite = { version = "0.36.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.3"
90security-framework = "3.2.0"
91semver = { version = "1.0.26", features = ["serde"] }
92serde = "1.0.219"
93serde-untagged = "0.1.7"
94serde-value = "0.7.0"
95serde_ignored = "0.1.12"
96serde_json = "1.0.140"
97sha1 = "0.10.6"
98sha2 = "0.10.9"
99shell-escape = "0.1.5"
100similar = "2.7.0"
101supports-hyperlinks = "3.1.0"
102supports-unicode = "3.0.0"
103snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] }
104tar = { version = "0.4.44", default-features = false }
105tempfile = "3.20.0"
106thiserror = "2.0.12"
107time = { version = "0.3.41", features = ["parsing", "formatting", "serde"] }
108toml = { version = "0.9.0", default-features = false }
109toml_edit = { version = "0.23.0", features = ["serde"] }
110tracing = { 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
111tracing-chrome = "0.7.2"
112tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
113unicase = "2.8.1"
114unicode-ident = "1.0.18"
115unicode-width = "0.2.1"
116unicode-xid = "0.2.6"
117url = "2.5.4"
118varisat = "0.2.2"
119walkdir = "2.5.0"
120windows-sys = "0.60"
121
122[workspace.lints.rust]
123rust_2018_idioms = "warn" # TODO: could this be removed?
124
125[workspace.lints.rustdoc]
126private_intra_doc_links = "allow"
127
128[workspace.lints.clippy]
129all = { level = "allow", priority = -2 }
130correctness = { level = "warn", priority = -1 }
131dbg_macro = "warn"
132disallowed_methods = "warn"
133print_stderr = "warn"
134print_stdout = "warn"
135self_named_module_files = "warn"
136
137[package]
138name = "cargo"
139version = "0.91.0"
140edition.workspace = true
141license.workspace = true
142rust-version = "1.88"  # MSRV:1
143homepage = "https://doc.rust-lang.org/cargo/index.html"
144repository.workspace = true
145documentation = "https://docs.rs/cargo"
146description = """
147Cargo, a package manager for Rust.
148"""
149
150[lib]
151name = "cargo"
152path = "src/cargo/lib.rs"
153
154[dependencies]
155annotate-snippets.workspace = true
156anstream.workspace = true
157anstyle.workspace = true
158anyhow.workspace = true
159base64.workspace = true
160blake3.workspace = true
161cargo-credential.workspace = true
162cargo-platform.workspace = true
163cargo-util-schemas.workspace = true
164cargo-util.workspace = true
165clap = { workspace = true, features = ["wrap_help"] }
166clap_complete.workspace = true
167color-print.workspace = true
168crates-io.workspace = true
169curl = { workspace = true, features = ["http2"] }
170curl-sys.workspace = true
171filetime.workspace = true
172flate2.workspace = true
173git2.workspace = true
174git2-curl.workspace = true
175gix.workspace = true
176glob.workspace = true
177hex.workspace = true
178hmac.workspace = true
179home.workspace = true
180http-auth.workspace = true
181ignore.workspace = true
182im-rc.workspace = true
183indexmap.workspace = true
184itertools.workspace = true
185jiff.workspace = true
186jobserver.workspace = true
187lazycell.workspace = true
188libgit2-sys.workspace = true
189memchr.workspace = true
190opener.workspace = true
191os_info.workspace = true
192pasetors.workspace = true
193pathdiff.workspace = true
194rand.workspace = true
195regex.workspace = true
196rusqlite.workspace = true
197rustc-hash.workspace = true
198rustc-stable-hash.workspace = true
199rustfix.workspace = true
200same-file.workspace = true
201semver.workspace = true
202serde = { workspace = true, features = ["derive"] }
203serde-untagged.workspace = true
204serde_ignored.workspace = true
205serde_json = { workspace = true, features = ["raw_value"] }
206sha1.workspace = true
207shell-escape.workspace = true
208supports-hyperlinks.workspace = true
209supports-unicode.workspace = true
210tar.workspace = true
211tempfile.workspace = true
212thiserror.workspace = true
213time.workspace = true
214toml = { workspace = true, features = ["std", "serde", "parse", "display", "preserve_order"] }
215toml_edit.workspace = true
216tracing = { workspace = true, features = ["attributes"] }
217tracing-subscriber.workspace = true
218unicase.workspace = true
219unicode-width.workspace = true
220unicode-xid.workspace = true
221url.workspace = true
222walkdir.workspace = true
223
224[target.'cfg(target_has_atomic = "64")'.dependencies]
225tracing-chrome.workspace = true
226
227[target.'cfg(unix)'.dependencies]
228libc.workspace = true
229
230[target.'cfg(target_os = "linux")'.dependencies]
231cargo-credential-libsecret.workspace = true
232
233[target.'cfg(target_os = "macos")'.dependencies]
234cargo-credential-macos-keychain.workspace = true
235
236[target.'cfg(not(windows))'.dependencies]
237openssl = { workspace = true, optional = true }
238
239[target.'cfg(windows)'.dependencies]
240cargo-credential-wincred.workspace = true
241
242[target.'cfg(windows)'.dependencies.windows-sys]
243workspace = true
244features = [
245  "Win32_Foundation",
246  "Win32_Security",
247  "Win32_Storage_FileSystem",
248  "Win32_System_IO",
249  "Win32_System_Console",
250  "Win32_System_JobObjects",
251  "Win32_System_Threading",
252]
253
254[dev-dependencies]
255annotate-snippets = { workspace = true, features = ["testing-colors"] }
256cargo-test-support.workspace = true
257gix = { workspace = true, features = ["revision"] }
258# When building Cargo for tests, a safety-measure in `gix` needs to be disabled
259# to allow sending credentials over HTTP connections.
260gix-transport = { version = "0.48.0", features = ["http-client-insecure-credentials"] }
261same-file.workspace = true
262snapbox.workspace = true
263
264[build-dependencies]
265flate2.workspace = true
266tar.workspace = true
267
268[[bin]]
269name = "cargo"
270test = false
271doc = false
272
273[features]
274default = ["http-transport-curl"]
275vendored-openssl = ["openssl/vendored"]
276vendored-libgit2 = ["libgit2-sys/vendored"]
277# This is primarily used by rust-lang/rust distributing cargo the executable.
278all-static = ['vendored-openssl', 'curl/static-curl', 'curl/force-system-lib-on-osx', 'vendored-libgit2']
279# Exactly one of 'http-transport-curl' or 'http-transport-reqwest' must be enabled
280# when using Cargo as a library. By default, it is 'http-transport-curl'.
281http-transport-curl = ["gix/blocking-http-transport-curl"]
282http-transport-reqwest = ["gix/blocking-http-transport-reqwest"]
283
284[lints]
285workspace = true