-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
109 lines (87 loc) · 3.27 KB
/
Cargo.toml
File metadata and controls
109 lines (87 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
# SPDX-FileCopyrightText: 2026 Sephyi <me@sephy.io>
#
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Commercial
[workspace]
resolver = "3"
members = [
"bind9-sdk",
"crates/bind9-sdk-core",
"crates/bind9-sdk-net",
"crates/bind9-sdk-bindings",
"crates/bind9-sdk-cli",
]
[workspace.package]
version = "0.1.0"
edition = "2024"
authors = ["Sephyi <me@sephy.io>"]
license = "AGPL-3.0-only OR LicenseRef-Commercial"
repository = "https://github.com/sephyi/bind9-sdk"
rust-version = "1.94"
keywords = ["dns", "bind9", "rndc", "nsupdate", "networking"]
categories = ["network-programming", "parser-implementations"]
[workspace.dependencies]
# Internal crates
bind9-sdk-core = { path = "crates/bind9-sdk-core", version = "0.1.0" }
bind9-sdk-net = { path = "crates/bind9-sdk-net", version = "0.1.0" }
# Crypto — RustCrypto, no_std compatible
hmac = { version = "0.12", default-features = false }
sha2 = { version = "0.10", default-features = false }
digest = { version = "0.10", default-features = false }
# Serialization — core uses no_std subset, net layer uses std
serde = { version = "1", default-features = false, features = [
"derive",
"alloc",
] }
serde_json = { version = "1" }
# Async runtime (net layer and above only)
tokio = { version = "1", features = ["full"] }
# Data parallelism (std only — not available in WASM)
rayon = { version = "1.11" }
# HTTP client for statistics-channel (net layer)
reqwest = { version = "0.12", default-features = false, features = [
"json",
"rustls-tls",
] }
# Error handling — thiserror 2.x supports no_std via default-features = false
thiserror = { version = "2", default-features = false }
# Logging
tracing = { version = "0.1" }
# Secret zeroization — no_std compatible (consumed by bind9-sdk-core for TsigKey and key material types)
zeroize = { version = "1", default-features = false, features = [
"derive",
"alloc",
] }
# Base64 encoding for TSIG keys — no_std compatible
base64 = { version = "0.22", default-features = false, features = ["alloc"] }
# Base32hex encoding for NSEC3 — no_std compatible
data-encoding = { version = "2", default-features = false, features = ["alloc"] }
# Random bytes for key generation — std only (not compiled for WASM)
getrandom = { version = "0.3", default-features = false }
# HMAC-SHA1 for legacy BIND9 compatibility — no_std compatible
sha1 = { version = "0.10", default-features = false }
# TLS 1.3 client
rustls = { version = "0.23", default-features = false, features = [
"ring",
] }
# Mozilla CA root certificates
webpki-roots = { version = "1" }
# Tokio rustls integration
tokio-rustls = { version = "0.26" }
# Async streams for zone transfer API
tokio-stream = { version = "0.1" }
async-stream = { version = "0.3" }
# napi-rs v3 — Node.js/Bun native addon + WASM
napi = { version = "3", features = ["async", "serde-json"] }
napi-derive = "3"
# CLI
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
toml = "0.8"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
dirs = "6"
keyring = { version = "3", features = ["apple-native", "linux-native"] }
secrecy = { version = "0.10", features = ["serde"] }
rpassword = "5"
# Testing (consumed via [dev-dependencies] in each crate)
proptest = { version = "1" }
insta = { version = "1" }