返回 CodeWhale
Cargo.toml
根目录 / crates / secrets / Cargo.toml
1 [package]
2 name = "codewhale-secrets"
3 version.workspace = true
4 edition.workspace = true
5 rust-version.workspace = true
6 license.workspace = true
7 repository.workspace = true
8 description = "Secret storage backends for Codewhale, with OS keyring and file fallback, plus the shared pure secret-redaction and output-sanitization primitives"
9
10 [lints]
11 workspace = true
12
13 [dependencies]
14 codewhale-sanitize = { path = "../sanitize", version = "0.10.1" }
15 codewhale-paths = { path = "../paths", version = "0.10.1" }
16 chrono.workspace = true
17 fd-lock = "=4.0.4"
18 libc.workspace = true
19 serde = { workspace = true }
20 serde_json = { workspace = true, features = ["preserve_order"] }
21 sha2.workspace = true
22 tempfile.workspace = true
23 thiserror = { workspace = true }
24 tracing = { workspace = true }
25
26 [target.'cfg(target_os = "macos")'.dependencies]
27 keyring = { version = "3", features = ["apple-native"] }
28
29 [target.'cfg(target_os = "windows")'.dependencies]
30 keyring = { version = "3", features = ["windows-native"] }
31
32 [target.'cfg(all(target_os = "linux", not(target_env = "ohos"), not(target_env = "musl")))'.dependencies]
33 keyring = { version = "3", features = ["linux-native-sync-persistent", "crypto-rust"] }
34
35 [dev-dependencies]
36 tempfile.workspace = true
37
37 lines TOML