version = "0.32.1"
default-features = false
features = ["read_core", "elf", "macho", "pe", "xcoff", "unaligned", "archive", "write", "wasm"]
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52.0"
-features = ["Win32_Globalization"]
[dependencies.parking_lot]
version = "0.12"
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52.0"
-features = [
- "Win32_Foundation",
- "Win32_Storage_FileSystem",
- "Win32_System_IO",
- "Win32_System_ProcessStatus",
- "Win32_System_Threading",
-]
-
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
# tidy-alphabetical-start
memmap2 = "0.2.1"
libc = "0.2"
# tidy-alphabetical-end
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52.0"
-features = [
- "Win32_System_Diagnostics_Debug",
-]
-
[features]
# tidy-alphabetical-start
llvm = ['rustc_interface/llvm']
unicode-width = "0.1.4"
# tidy-alphabetical-end
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52.0"
-features = [
- "Win32_Foundation",
- "Win32_Security",
- "Win32_System_Threading",
-]
-
[features]
# tidy-alphabetical-start
rustc_use_parallel_compiler = ['rustc_error_messages/rustc_use_parallel_compiler']
# tidy-alphabetical-start
libc = "0.2"
# tidy-alphabetical-end
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52.0"
-features = [
- "Win32_Foundation",
- "Win32_System_LibraryLoader",
-]
default-features = false
features = ['read_core', 'elf', 'macho', 'pe', 'xcoff', 'unaligned', 'archive']
-[target.'cfg(windows)'.dependencies]
-winapi = { version = "0.3.9", optional = true }
-
[build-dependencies]
# Only needed for Android, but cannot be target dependent
# https://github.com/rust-lang/cargo/issues/4932
libunwind = []
unix-backtrace = []
verify-winapi = [
- 'winapi/dbghelp',
- 'winapi/handleapi',
- 'winapi/libloaderapi',
- 'winapi/memoryapi',
- 'winapi/minwindef',
- 'winapi/processthreadsapi',
- 'winapi/synchapi',
- 'winapi/tlhelp32',
- 'winapi/winbase',
- 'winapi/winnt',
]
[[example]]
# Dependencies needed by the build-metrics feature
sysinfo = { version = "0.30", optional = true }
-[target.'cfg(windows)'.dependencies.junction]
-version = "1.0.0"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52"
-features = [
- "Win32_Foundation",
- "Win32_Security",
- "Win32_System_Diagnostics_Debug",
- "Win32_System_JobObjects",
- "Win32_System_ProcessStatus",
- "Win32_System_Threading",
- "Win32_System_Time",
-]
-
[dev-dependencies]
pretty_assertions = "1.4"
resolver = "2"
members = [
"crates/*",
- "credential/*",
+ "credential/cargo-credential",
+ "credential/cargo-credential-1password",
+ "credential/cargo-credential-libsecret",
"benches/benchsuite",
"benches/capture",
]
cargo = { path = "" }
cargo-credential = { version = "0.4.2", path = "credential/cargo-credential" }
cargo-credential-libsecret = { version = "0.4.2", path = "credential/cargo-credential-libsecret" }
-cargo-credential-macos-keychain = { version = "0.4.2", path = "credential/cargo-credential-macos-keychain" }
-cargo-credential-wincred = { version = "0.4.2", path = "credential/cargo-credential-wincred" }
cargo-platform = { path = "crates/cargo-platform", version = "0.1.5" }
cargo-test-macro = { path = "crates/cargo-test-macro" }
cargo-test-support = { path = "crates/cargo-test-support" }
url = "2.5.0"
varisat = "0.2.2"
walkdir = "2.4.0"
-windows-sys = "0.52"
[workspace.lints.rust]
rust_2018_idioms = "warn" # TODO: could this be removed?
base64.workspace = true
bytesize.workspace = true
cargo-credential.workspace = true
+cargo-credential-libsecret.workspace = true
cargo-platform.workspace = true
cargo-util-schemas.workspace = true
cargo-util.workspace = true
[target.'cfg(target_os = "linux")'.dependencies]
cargo-credential-libsecret.workspace = true
-[target.'cfg(target_os = "macos")'.dependencies]
-cargo-credential-macos-keychain.workspace = true
-
[target.'cfg(not(windows))'.dependencies]
openssl = { workspace = true, optional = true }
-[target.'cfg(windows)'.dependencies]
-cargo-credential-wincred.workspace = true
-
-[target.'cfg(windows)'.dependencies.windows-sys]
-workspace = true
-features = [
- "Win32_Foundation",
- "Win32_Security",
- "Win32_Storage_FileSystem",
- "Win32_System_IO",
- "Win32_System_Console",
- "Win32_System_JobObjects",
- "Win32_System_Threading",
-]
-
[dev-dependencies]
annotate-snippets = { workspace = true, features = ["testing-colors"] }
cargo-test-macro.workspace = true
url.workspace = true
walkdir.workspace = true
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem"] }
-
[lints]
workspace = true
tracing.workspace = true
walkdir.workspace = true
-[target.'cfg(target_os = "macos")'.dependencies]
-core-foundation.workspace = true
-
-[target.'cfg(windows)'.dependencies]
-miow.workspace = true
-windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Console"] }
-
[lints]
workspace = true
repository.workspace = true
description = "Shared definitions of home directories."
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = ["Win32_Foundation", "Win32_UI_Shell", "Win32_System_Com"] }
-
[lints]
workspace = true
thiserror.workspace = true
time.workspace = true
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = ["Win32_System_Console", "Win32_Foundation"] }
-
[dev-dependencies]
snapbox = { workspace = true, features = ["examples"] }
}
"cargo:paseto" => bail!("cargo:paseto requires -Zasymmetric-token"),
"cargo:token-from-stdout" => Box::new(BasicProcessCredential {}),
- #[cfg(windows)]
- "cargo:wincred" => Box::new(cargo_credential_wincred::WindowsCredential {}),
- #[cfg(target_os = "macos")]
- "cargo:macos-keychain" => Box::new(cargo_credential_macos_keychain::MacKeychain {}),
- #[cfg(target_os = "linux")]
"cargo:libsecret" => Box::new(cargo_credential_libsecret::LibSecretCredential {}),
name if BUILT_IN_PROVIDERS.contains(&name) => {
Box::new(cargo_credential::UnsupportedCredential {})
[target.'cfg(unix)'.dependencies]
libc = "0.2"
-
-[target.'cfg(windows)'.dependencies]
-miow = "0.6"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52.0"
-features = [
- "Win32_Foundation",
- "Win32_System_Diagnostics_Debug",
-]
[target.'cfg(target_os = "linux")'.dependencies]
perf-event = "=0.4.7"
-[target.'cfg(windows)'.dependencies]
-winapi = { version = "0.3.9", features = ["processthreadsapi", "psapi"] }
-
[features]
cpu_profiler = []
vfs.workspace = true
memchr = "2.7.1"
-[target.'cfg(windows)'.dependencies]
-winapi = "0.3.9"
-
-[target.'cfg(not(target_env = "msvc"))'.dependencies]
-jemallocator = { version = "0.5.0", package = "tikv-jemallocator", optional = true }
-
[dev-dependencies]
expect-test = "1.4.0"
xshell.workspace = true
itertools.workspace = true
# Think twice before adding anything here
-[target.'cfg(windows)'.dependencies]
-miow = "0.6.0"
-winapi = { version = "0.3.9", features = ["winerror"] }
-
[features]
# Uncomment to enable for the whole crate graph
# default = [ "backtrace" ]