fork/cargo

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

Eric Huss[beta-1.86] depend on openssl-sys to correctly pin its version (#15226)fcb465caf

0.87.0
8.3 KiB277 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.82"  # 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.0", path = "crates/build-rs" }
28bytesize = "1.3"
29cargo = { path = "" }
30cargo-credential = { version = "0.4.2", path = "credential/cargo-credential" }
31cargo-credential-libsecret = { version = "0.4.12", path = "credential/cargo-credential-libsecret" }
32cargo-credential-macos-keychain = { version = "0.4.12", path = "credential/cargo-credential-macos-keychain" }
33cargo-credential-wincred = { version = "0.4.12", path = "credential/cargo-credential-wincred" }
34cargo-platform = { path = "crates/cargo-platform", version = "0.2.0" }
35cargo-test-macro = { version = "0.4.1", path = "crates/cargo-test-macro" }
36cargo-test-support = { version = "0.7.1", path = "crates/cargo-test-support" }
37cargo-util = { version = "0.2.19", path = "crates/cargo-util" }
38cargo-util-schemas = { version = "0.7.3", path = "crates/cargo-util-schemas" }
39cargo_metadata = "0.19.1"
40clap = "4.5.28"
41clap_complete = { version = "4.5.44", features = ["unstable-dynamic"] }
42color-print = "0.3.7"
43core-foundation = { version = "0.10.0", features = ["mac_os_10_7_support"] }
44crates-io = { version = "0.40.9", path = "crates/crates-io" }
45criterion = { version = "0.5.1", features = ["html_reports"] }
46curl = "0.4.47"
47curl-sys = "0.4.79"
48filetime = "0.2.25"
49flate2 = { version = "1.0.35", default-features = false, features = ["zlib"] }
50git2 = "0.20.0"
51git2-curl = "0.21.0"
52gix = { version = "0.70.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 }
59humantime = "2.1.0"
60ignore = "0.4.23"
61im-rc = "15.1.0"
62indexmap = "2.7.1"
63itertools = "0.14.0"
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.57" # See rust-lang/cargo#13546 and openssl/openssl#23376 for pinning
73openssl-sys = "=0.9.92" # See rust-lang/cargo#13546 and openssl/openssl#23376 for pinning
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.12.2", default-features = false, features = ["html"] }
81rand = "0.9.0"
82regex = "1.11.1"
83rusqlite = { version = "0.33.0", features = ["bundled"] }
84rustc-hash = "2.1.1"
85rustc-stable-hash = "0.1.1"
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.87.0"
139edition.workspace = true
140license.workspace = true
141rust-version = "1.84"  # 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
160bytesize.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
181humantime.workspace = true
182ignore.workspace = true
183im-rc.workspace = true
184indexmap.workspace = true
185itertools.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
215toml_edit.workspace = true
216tracing = { workspace = true, features = ["attributes"] }
217tracing-subscriber.workspace = true
218unicase.workspace = true
219unicode-width.workspace = true
220url.workspace = true
221walkdir.workspace = true
222
223[target.'cfg(target_has_atomic = "64")'.dependencies]
224tracing-chrome.workspace = true
225
226[target.'cfg(unix)'.dependencies]
227libc.workspace = true
228
229[target.'cfg(target_os = "linux")'.dependencies]
230cargo-credential-libsecret.workspace = true
231
232[target.'cfg(target_os = "macos")'.dependencies]
233cargo-credential-macos-keychain.workspace = true
234
235[target.'cfg(not(windows))'.dependencies]
236openssl = { workspace = true, optional = true }
237openssl-sys = { workspace = true, optional = true } # HACK: for pinning to openssl v1.
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"] }
258same-file.workspace = true
259snapbox.workspace = true
260
261[build-dependencies]
262flate2.workspace = true
263tar.workspace = true
264
265[[bin]]
266name = "cargo"
267test = false
268doc = false
269
270[features]
271vendored-openssl = ["openssl/vendored"]
272vendored-libgit2 = ["libgit2-sys/vendored"]
273# This is primarily used by rust-lang/rust distributing cargo the executable.
274all-static = ['vendored-openssl', 'curl/static-curl', 'curl/force-system-lib-on-osx', 'vendored-libgit2']
275
276[lints]
277workspace = true