forked from hwchen/keyring-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
80 lines (67 loc) · 2.83 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[package]
authors = ["Walther Chen <walther.chen@gmail.com>", "Daniel Brotsky <dev@brotsky.com>"]
description = "Cross-platform library for managing passwords/credentials"
homepage = "https://github.com/hwchen/keyring-rs"
keywords = ["password", "credential", "keychain", "keyring", "cross-platform"]
license = "MIT OR Apache-2.0"
name = "keyring"
repository = "https://github.com/hwchen/keyring-rs.git"
version = "3.6.1"
rust-version = "1.75"
edition = "2021"
exclude = [".github/"]
readme = "README.md"
[features]
linux-native = ["dep:linux-keyutils"]
apple-native = ["dep:security-framework"]
windows-native = ["dep:windows-sys", "dep:byteorder"]
linux-native-sync-persistent = ["linux-native", "sync-secret-service"]
linux-native-async-persistent = ["linux-native", "async-secret-service"]
sync-secret-service = ["dep:dbus-secret-service"]
async-secret-service = ["dep:secret-service", "dep:zbus"]
crypto-rust = ["dbus-secret-service?/crypto-rust", "secret-service?/crypto-rust"]
crypto-openssl = ["dbus-secret-service?/crypto-openssl", "secret-service?/crypto-openssl"]
tokio = ["zbus?/tokio"]
async-io = ["zbus?/async-io"]
vendored = ["dbus-secret-service?/vendored", "openssl?/vendored"]
[dependencies]
log = "0.4.22"
openssl = { version = "0.10.66", optional = true }
[target.'cfg(target_os = "macos")'.dependencies] # see issue #190
security-framework = { version = "3", optional = true }
[target.'cfg(target_os = "ios")'.dependencies] # see issue #190
security-framework = { version = "2", optional = true }
[target.'cfg(target_os = "linux")'.dependencies]
secret-service = { version = "4", optional = true }
zbus = { version = "4", optional = true }
linux-keyutils = { version = "0.2", features = ["std"], optional = true }
dbus-secret-service = { version = "4.0.0-rc.2", optional = true }
[target.'cfg(target_os = "freebsd")'.dependencies]
secret-service = { version = "4", optional = true }
zbus = { version = "4", optional = true }
dbus-secret-service = { version = "4.0.1", optional = true }
[target.'cfg(target_os = "openbsd")'.dependencies]
secret-service = { version = "4", optional = true }
zbus = { version = "4", optional = true }
dbus-secret-service = { version = "4.0.0-rc.1", optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
byteorder = { version = "1.2", optional = true }
windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_Security_Credentials"], optional = true }
[[example]]
name = "iostest"
path = "examples/ios.rs"
crate-type = ["staticlib"]
[[example]]
name = "keyring-cli"
path = "examples/cli.rs"
[dev-dependencies]
base64 = "0.22"
clap = { version = "4", features = ["derive", "wrap_help"] }
doc-comment = "0.3"
env_logger = "0.11.5"
rand = "0.8"
rpassword = "7"
rprompt = "2"
whoami = "1.5"
[package.metadata.docs.rs]
features = ["apple-native", "windows-native", "sync-secret-service", "crypto-rust"]