Rollup merge of #146001 - bjorn3:update_getopts, r=davidtwco

Update getopts to remove unicode-width dependency

Pulls in https://github.com/rust-lang/getopts/pull/133. This saves 1.5MB on the vendored size of the standard library.
This commit is contained in:
Matthias Krüger 2025-09-09 17:32:21 +02:00 committed by GitHub
commit f46ddbab2f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 18 deletions

View file

@ -674,7 +674,7 @@ checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
dependencies = [
"serde",
"termcolor",
"unicode-width 0.2.1",
"unicode-width 0.1.14",
]
[[package]]
@ -1458,9 +1458,9 @@ dependencies = [
[[package]]
name = "getopts"
version = "0.2.23"
version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cba6ae63eb948698e300f645f87c70f76630d505f23b8907cf1e193ee85048c1"
checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"
dependencies = [
"unicode-width 0.2.1",
]

View file

@ -99,13 +99,12 @@ dependencies = [
[[package]]
name = "getopts"
version = "0.2.23"
version = "0.2.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cba6ae63eb948698e300f645f87c70f76630d505f23b8907cf1e193ee85048c1"
checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df"
dependencies = [
"rustc-std-workspace-core",
"rustc-std-workspace-std",
"unicode-width",
]
[[package]]
@ -361,16 +360,6 @@ dependencies = [
"std",
]
[[package]]
name = "unicode-width"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a1a07cc7db3810833284e8d372ccdc6da29741639ecc70c9ec107df0fa6154c"
dependencies = [
"rustc-std-workspace-core",
"rustc-std-workspace-std",
]
[[package]]
name = "unwind"
version = "0.0.0"

View file

@ -6,7 +6,7 @@ version = "0.0.0"
edition = "2024"
[dependencies]
getopts = { version = "0.2.21", features = ['rustc-dep-of-std'] }
getopts = { version = "0.2.24", default-features = false, features = ['rustc-dep-of-std'] }
std = { path = "../std", public = true }
core = { path = "../core", public = true }

View file

@ -477,7 +477,6 @@ const PERMITTED_STDLIB_DEPENDENCIES: &[&str] = &[
"rustc-demangle",
"rustc-literal-escaper",
"shlex",
"unicode-width",
"unwinding",
"wasi",
"windows-sys",