fork/cargo
git clone https://git.julia.blue/fork/cargo
6598fea0a
master
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.89" # 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.10" , features = [ "simd" ] } 22anstream = "0.6.21" 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.5" , path = "credential/cargo-credential-libsecret" } 31cargo-credential-macos-keychain = { version = "0.4.20" , path = "credential/cargo-credential-macos-keychain" } 32cargo-credential-wincred = { version = "0.4.20" , path = "credential/cargo-credential-wincred" } 33cargo-platform = { path = "crates/cargo-platform" , version = "0.3.0" } 34cargo-test-macro = { version = "0.4.9" , path = "crates/cargo-test-macro" } 35cargo-test-support = { version = "0.10.0" , path = "crates/cargo-test-support" } 36cargo-util = { version = "0.2.27" , path = "crates/cargo-util" } 37cargo-util-schemas = { version = "0.12.0" , path = "crates/cargo-util-schemas" } 38cargo_metadata = "0.23.1" 39clap = "4.5.53" 40clap_complete = { version = "4.5.64" , 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.17" , path = "crates/crates-io" } 44criterion = { version = "0.8.1" , features = [ "html_reports" ] } 45curl = "0.4.49" 46# Do not upgrade curl-sys past 0.4.83 47# https://github.com/rust-lang/cargo/issues/16357 48curl-sys = "0.4.84" 49filetime = "0.2.26" 50flate2 = { version = "1.1.5" , default-features = false , features = [ "zlib-rs" ] } 51git2 = "0.20.3" 52git2-curl = "0.21.0" 53# When updating this, also see if `gix-transport` further down needs updating or some auth-related tests will fail. 54gix = { version = "0.77.0" , default-features = false , features = [ "progress-tree" , "parallel" , "dirwalk" , "status" ] } 55glob = "0.3.3" 56handlebars = { version = "6.4.0" , features = [ "dir_source" ] } 57hex = "0.4.3" 58hmac = "0.12.1" 59home = "0.5.12" 60http-auth = { version = "0.1.10" , default-features = false } 61ignore = "0.4.25" 62im-rc = "15.1.0" 63indexmap = "2.12.1" 64itertools = "0.14.0" 65jiff = { version = "0.2.17" , default-features = false , features = [ "std" ] } 66jobserver = "0.1.34" 67libc = "0.2.178" 68libgit2-sys = "0.18.3" 69libloading = "0.9.0" 70memchr = "2.7.6" 71memfd = "0.6.5" 72miow = "0.6.1" 73opener = "0.8.3" 74openssl = "0.10.75" 75openssl-sys = "0.9.111" 76os_info = { version = "3.14.0" , default-features = false } 77pasetors = { version = "0.7.7" , features = [ "v3" , "paserk" , "std" , "serde" ] } 78pathdiff = "0.2.3" 79percent-encoding = "2.3.2" 80pkg-config = "0.3.32" 81proptest = "1.9.0" 82pulldown-cmark = { version = "0.13.0" , default-features = false , features = [ "html" ] } 83rand = "0.9.2" 84regex = "1.12.2" 85rusqlite = { version = "0.38.0" , features = [ "bundled" ] } 86rustc-hash = "2.1.1" 87rustc-stable-hash = "0.1.2" 88rustfix = { version = "0.9.2" , path = "crates/rustfix" } 89same-file = "1.0.6" 90schemars = "1.2.0" 91security-framework = "3.5.1" 92semver = { version = "1.0.27" , features = [ "serde" ] } 93serde = "1.0.228" 94serde_core = "1.0.228" 95serde-untagged = "0.1.9" 96serde-value = "0.7.0" 97serde_ignored = "0.1.14" 98serde_json = "1.0.148" 99sha1 = "0.10.6" 100sha2 = "0.10.9" 101shell-escape = "0.1.5" 102similar = "2.7.0" 103supports-hyperlinks = "3.2.0" 104supports-unicode = "3.0.0" 105snapbox = { version = "0.6.23" , features = [ "diff" , "dir" , "term-svg" , "regex" , "json" ] } 106tar = { version = "0.4.44" , default-features = false } 107tempfile = "3.24.0" 108thiserror = "2.0.17" 109time = { version = "0.3.44" , features = [ "parsing" , "formatting" , "serde" ] } 110toml = { version = "0.9.10" , default-features = false } 111toml_edit = { version = "0.24.0" , features = [ "serde" ] } 112tracing = { version = "0.1.44" , default-features = false , features = [ "std" ] } # be compatible with rustc_log: https://github.com/rust-lang/rust/blob/e51e98dde6a/compiler/rustc_log/Cargo.toml#L9 113tracing-chrome = "0.7.2" 114tracing-subscriber = { version = "0.3.22" , features = [ "env-filter" ] } 115unicase = "2.8.1" 116unicode-ident = "1.0.22" 117unicode-width = "0.2.2" 118url = "2.5.7" 119varisat = "0.2.2" 120walkdir = "2.5.0" 121windows-sys = "0.61" 122winnow = "0.7.14" 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.95.0" 142edition . workspace = true 143license . workspace = true 144rust-version = "1.92" # 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 , features = [ "serde" , "std" ] } 188jobserver . 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 , features = [ "fallible_uint" ] } 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.52.1" , features = [ "http-client-insecure-credentials" ] } 263same-file . workspace = true 264snapbox . workspace = true 265 266[ target . 'cfg(target_os = "linux")' . dev-dependencies ] 267memfd . workspace = true 268 269[ build-dependencies ] 270flate2 . workspace = true 271tar . workspace = true 272 273[[ bin ]] 274name = "cargo" 275test = false 276doc = false 277 278[ features ] 279default = [ "http-transport-curl" ] 280vendored-openssl = [ "openssl/vendored" ] 281vendored-libgit2 = [ "libgit2-sys/vendored" ] 282# This is primarily used by rust-lang/rust distributing cargo the executable. 283all-static = [ 'vendored-openssl' , 'curl/static-curl' , 'curl/force-system-lib-on-osx' , 'vendored-libgit2' ] 284# Exactly one of 'http-transport-curl' or 'http-transport-reqwest' must be enabled 285# when using Cargo as a library. By default, it is 'http-transport-curl'. 286http-transport-curl = [ "gix/blocking-http-transport-curl" ] 287http-transport-reqwest = [ "gix/blocking-http-transport-reqwest" ] 288 289[ lints ] 290workspace = true