diff --git a/Cargo.lock b/Cargo.lock index e914a29d081..af89b321980 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -350,7 +350,7 @@ dependencies = [ [[package]] name = "cargo-credential" -version = "0.4.4" +version = "0.4.5" dependencies = [ "anyhow", "libc", @@ -2481,7 +2481,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae99c7fa6dd38c7cafe1ec085e804f8f555a2f8659b0dbe03f1f9963a9b51092" dependencies = [ "log", - "serde", "windows-sys 0.52.0", ] diff --git a/Cargo.toml b/Cargo.toml index d0f2afb3972..6854b4aefa3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -68,7 +68,7 @@ miow = "0.6.0" opener = "0.7.0" openssl = "0.10.57" openssl-sys = "=0.9.92" # See rust-lang/cargo#13546 and openssl/openssl#23376 for pinning -os_info = "3.8.2" +os_info = { version = "3.8.2", default-features = false } pasetors = { version = "0.6.8", features = ["v3", "paserk", "std", "serde"] } pathdiff = "0.2" percent-encoding = "2.3" @@ -173,7 +173,6 @@ indexmap.workspace = true itertools.workspace = true jobserver.workspace = true lazycell.workspace = true -libc.workspace = true libgit2-sys.workspace = true memchr.workspace = true opener.workspace = true @@ -208,6 +207,9 @@ supports-unicode = "3.0.0" [target.'cfg(target_has_atomic = "64")'.dependencies] tracing-chrome.workspace = true +[target.'cfg(unix)'.dependencies] +libc.workspace = true + [target.'cfg(target_os = "linux")'.dependencies] cargo-credential-libsecret.workspace = true diff --git a/crates/cargo-util/Cargo.toml b/crates/cargo-util/Cargo.toml index 76e04b919af..28877eedaf7 100644 --- a/crates/cargo-util/Cargo.toml +++ b/crates/cargo-util/Cargo.toml @@ -14,7 +14,6 @@ filetime.workspace = true hex.workspace = true ignore.workspace = true jobserver.workspace = true -libc.workspace = true same-file.workspace = true sha2.workspace = true shell-escape.workspace = true @@ -25,6 +24,9 @@ walkdir.workspace = true [target.'cfg(target_os = "macos")'.dependencies] core-foundation.workspace = true +[target.'cfg(unix)'.dependencies] +libc.workspace = true + [target.'cfg(windows)'.dependencies] miow.workspace = true windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Console"] } diff --git a/credential/cargo-credential/Cargo.toml b/credential/cargo-credential/Cargo.toml index 1b9ae5756f3..4ed0d325352 100644 --- a/credential/cargo-credential/Cargo.toml +++ b/credential/cargo-credential/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cargo-credential" -version = "0.4.4" +version = "0.4.5" rust-version.workspace = true edition.workspace = true license.workspace = true @@ -10,12 +10,14 @@ description = "A library to assist writing Cargo credential helpers." [dependencies] anyhow.workspace = true -libc.workspace = true serde = { workspace = true, features = ["derive"] } serde_json.workspace = true thiserror.workspace = true time.workspace = true +[target.'cfg(unix)'.dependencies] +libc.workspace = true + [target.'cfg(windows)'.dependencies] windows-sys = { workspace = true, features = ["Win32_System_Console", "Win32_Foundation"] }