-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
117 lines (96 loc) · 3.27 KB
/
Cargo.toml
File metadata and controls
117 lines (96 loc) · 3.27 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[workspace]
resolver = "2"
members = [
"crates/ans-types",
"crates/ans-verify",
"crates/ans-client",
]
[workspace.package]
version = "0.1.4"
edition = "2024"
rust-version = "1.88"
license = "MIT"
homepage = "https://github.com/godaddy/ans-sdk-rust"
repository = "https://github.com/godaddy/ans-sdk-rust"
[workspace.dependencies]
# Internal crates
ans-types = { path = "crates/ans-types", version = "0.1.4" }
ans-verify = { path = "crates/ans-verify", version = "0.1.4" }
ans-client = { path = "crates/ans-client", version = "0.1.4" }
# Async runtime
tokio = { version = "1.50", features = ["rt-multi-thread", "sync", "time", "macros", "net", "io-util"] }
# TLS
rustls = { version = "0.23", default-features = false, features = ["ring", "std", "tls12"] }
tokio-rustls = "0.26"
rustls-pki-types = { version = "1.11", features = ["std"] }
# HTTP client
reqwest = { version = "0.13", default-features = false, features = [
"json",
"query",
"rustls",
] }
# DNS resolution
hickory-resolver = { version = "0.25", features = ["tls-ring", "dnssec-ring", "system-config"] }
# Cryptography
sha2 = "0.10"
hex = "0.4"
subtle = "2.6"
rcgen = { version = "0.14", features = ["pem"] }
rsa = { version = "0.9", features = ["pem"] }
rand = "0.10"
x509-parser = "0.18"
p256 = { version = "0.13", features = ["ecdsa", "pkcs8"] }
ciborium = "0.2"
base64 = "0.22"
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling
thiserror = "2.0"
# Secret management
secrecy = { version = "0.10", features = ["serde"] }
# Utilities
chrono = { version = "0.4", default-features = false, features = ["serde", "std", "now"] }
url = { version = "2.5", features = ["serde"] }
uuid = { version = "1.22", features = ["serde", "v4"] }
tracing = "0.1"
async-trait = "0.1"
urlencoding = "2.1"
# Async utilities
tokio-util = "0.7"
futures-util = "0.3"
# Caching
moka = { version = "0.12", features = ["future"] }
# Testing
tokio-test = "0.4"
wiremock = "0.6"
rstest = "0.26"
test-log = { version = "0.2", features = ["trace"] }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
[workspace.lints.clippy]
# ── Pedantic (opinionated but high-value) ──
pedantic = { level = "warn", priority = -1 }
# Pedantic overrides — these are too noisy for this codebase
module_name_repetitions = "allow" # e.g. `ans_types::AnsName` is fine
must_use_candidate = "allow" # too many false positives on builders
return_self_not_must_use = "allow" # builder pattern is pervasive
missing_errors_doc = "allow" # we document errors, just not on every fn
missing_panics_doc = "allow" # same
# ── Selected nursery lints (stable enough to use) ──
redundant_pub_crate = "warn"
use_self = "warn"
# ── Panic prevention (critical for SDK — panics take down consumer apps) ──
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
exit = "deny"
mem_forget = "deny"
# ── Restriction lints (opt-in, high-value) ──
dbg_macro = "deny"
print_stdout = "deny"
print_stderr = "deny"
todo = "deny"
[workspace.lints.rust]
unsafe_code = "forbid"
future_incompatible = { level = "deny", priority = -1 }
missing_debug_implementations = "warn"