Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
187 lines (172 loc) · 7.3 KB
/
Copy pathCargo.toml
File metadata and controls
187 lines (172 loc) · 7.3 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
[workspace]
members = [
"crates/*",
"bindings/dart/rust",
"bindings/swift/rust",
"bindings/kotlin/rust",
"bindings/go/rust",
]
exclude = [
"fuzz",
]
resolver = "2"
[workspace.lints.rust]
unsafe_code = "forbid"
# unreachable_pub = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
[workspace.lints.clippy]
# pedantic = { level = "warn", priority = -1 }
# nursery = { level = "warn", priority = -1 }
unwrap_used = "deny"
# clone_on_ref_ptr = "warn"
# missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
# redundant_else = "warn"
# redundant_closure_for_method_calls = "warn"
# unneeded_field_pattern = "warn"
use_debug = "warn"
large_enum_variant = "warn"
[workspace.lints.rustdoc]
bare_urls = "warn"
[workspace.package]
edition = "2021"
rust-version = "1.85.0"
license = "Apache-2.0 OR MIT"
homepage = "https://github.com/cashubtc/cdk"
repository = "https://github.com/cashubtc/cdk.git"
version = "0.18.0"
readme = "README.md"
[workspace.dependencies]
anyhow = "1"
arc-swap = { version = "1.7.1", default-features = false }
async-trait = "0.1"
axum = { version = "0.8.1", features = ["ws"] }
bitcoin = { version = "0.32.2", features = ["base64", "serde", "rand", "rand-std"] }
bip39 = { version = "2.0", features = ["rand"] }
jsonwebtoken = "9.2.0"
cashu = { path = "./crates/cashu", default-features = false, version = "=0.18.0" }
cdk = { path = "./crates/cdk", default-features = false, version = "=0.18.0" }
cdk-common = { path = "./crates/cdk-common", default-features = false, version = "=0.18.0" }
cdk-axum = { path = "./crates/cdk-axum", default-features = false, version = "=0.18.0" }
cdk-cln = { path = "./crates/cdk-cln", version = "=0.18.0" }
cdk-lnd = { path = "./crates/cdk-lnd", version = "=0.18.0" }
cdk-ldk-node = { path = "./crates/cdk-ldk-node", version = "=0.18.0" }
cdk-fake-wallet = { path = "./crates/cdk-fake-wallet", default-features = false, version = "=0.18.0" }
cdk-ffi = { path = "./crates/cdk-ffi", default-features = false, version = "=0.18.0" }
cdk-http-client = { path = "./crates/cdk-http-client", default-features = false, version = "=0.18.0" }
cdk-payment-processor = { path = "./crates/cdk-payment-processor", default-features = true, version = "=0.18.0" }
cdk-mint-rpc = { path = "./crates/cdk-mint-rpc", version = "=0.18.0" }
cdk-redb = { path = "./crates/cdk-redb", default-features = true, version = "=0.18.0" }
cdk-sql-common = { path = "./crates/cdk-sql-common", default-features = true, version = "=0.18.0" }
cdk-sqlite = { path = "./crates/cdk-sqlite", default-features = true, version = "=0.18.0" }
cdk-postgres = { path = "./crates/cdk-postgres", default-features = true, version = "=0.18.0" }
cdk-signatory = { path = "./crates/cdk-signatory", version = "=0.18.0", default-features = false }
cdk-mintd = { path = "./crates/cdk-mintd", version = "=0.18.0", default-features = false }
cdk-prometheus = { path = "./crates/cdk-prometheus", version = "=0.18.0", default-features = false }
cdk-supabase = { path = "./crates/cdk-supabase", version = "=0.18.0", default-features = false }
cdk-nostr = { path = "./crates/cdk-nostr", default-features = false, version = "=0.18.0" }
cdk-bdk = { path = "./crates/cdk-bdk", version = "=0.18.0", default-features = false }
clap = { version = "4.5.31", features = ["derive"] }
ciborium = { version = "0.2.2", default-features = false, features = ["std"] }
cbor-diag = "0.1.12"
config = { version = "0.15.11", features = ["toml"] }
criterion = "0.6.0"
futures = { version = "0.3.28", default-features = false, features = ["async-await"] }
gloo-timers = { version = "0.3", default-features = false, features = ["futures"] }
lightning-invoice = { version = "0.34.0", features = ["serde", "std"] }
lightning = { version = "0.2.7", default-features = false, features = ["std"]}
ldk-node = "0.7.0"
serde = { version = "1", features = ["derive", "rc"] }
serde_bytes = "0.11"
serde_ignored = { version = "0.1.14", default-features = false }
serde_json = "1"
thiserror = { version = "2" }
toml = { version = "0.8.23", default-features = false, features = ["display"] }
tokio = { version = "1", default-features = false, features = ["rt", "macros", "test-util", "sync", "time"] }
tokio-util = { version = "0.7.11", default-features = false }
tower = "0.5.2"
tower-http = { version = "0.6.1", features = ["compression-full", "decompression-full", "cors", "trace", "fs"] }
tokio-tungstenite = { version = "0.26.0", default-features = false }
tokio-stream = "0.1.15"
tracing = { version = "0.1", default-features = false, features = ["attributes", "log"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
tracing-appender = "0.2"
uniffi = "0.30"
ur = "0.5.2"
qrcode = { version = "0.14", default-features = false }
crossterm = { version = "0.28", features = ["event-stream"] }
url = "2.3"
uuid = { version = "1.17", features = ["v4", "v7", "serde"] }
maud = { version = "0.27.0", features = ["axum"] }
serde_with = "3"
paste = { version = "1.0.15", default-features = false }
reqwest = { version = "0.13", default-features = false, features = [
"json",
"rustls",
"socks",
"zstd",
"brotli",
"gzip",
"deflate",
]}
home = { version = "0.5.5", default-features = false }
web-time = "1.1.0"
rand = "0.9.1"
regex = "1"
tonic = { version = "0.14.2", default-features = false }
tonic-prost = "0.14.2"
tonic-prost-build = "0.14.2"
prost = "0.14"
rustls = { version = "0.23.27", default-features = false, features = ["ring"] }
prometheus = { version = "0.14", features = ["process"], default-features = false }
nostr-sdk = { version = "0.45.2", default-features = false }
nostr = { version = "0.45.3", default-features = false, features = [
"nip04",
"nip44",
"nip47",
"nip59",
"os-rng",
"rand",
"std"
] }
bitcoin-payment-instructions = { version = "0.7.0", default-features = false }
dnssec-prover = { version = "0.6.9", default-features = false }
[workspace.metadata]
authors = ["CDK Developers"]
description = "Cashu Development Kit"
readme = "README.md"
repository = "https://github.com/cashubtc/cdk"
license-file = "LICENSE.md"
keywords = ["bitcoin", "e-cash", "cashu"]
[profile.ci]
inherits = "dev"
incremental = false
lto = "off"
[profile.release-smaller]
inherits = "release"
opt-level = 'z' # Optimize for size.
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations.
panic = "abort" # Abort on panic
strip = "debuginfo" # Partially strip symbols from binary
[profile.release-static]
inherits = "release"
opt-level = 3 # Full speed optimization
lto = "thin" # Thin LTO (cross-crate optimization + reproducibility, faster than fat LTO)
codegen-units = 1 # Single codegen unit (better optimization + reproducibility)
panic = "abort" # No unwinding overhead, smaller binary
strip = "debuginfo" # Strip debug info, keep symbol names for backtraces
# Shipped FFI binding libraries. No panic = "abort": UniFFI's scaffolding turns
# a Rust panic into a foreign exception via catch_unwind, and aborting would
# kill the host app instead. strip = "debuginfo" keeps the symbol table that
# uniffi-bindgen reads the component interface from; the release workflows
# strip fully after generating bindings.
[profile.release-ffi]
inherits = "release"
lto = true
codegen-units = 1
strip = "debuginfo"
[workspace.metadata.crane]
name = "cdk-workspace"