-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCargo.toml
75 lines (67 loc) · 2.02 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
[package]
name = "scrow"
version = "0.5.0"
edition = "2024"
authors = [
"Jose Storopoli <[email protected]>",
"Luis Schwab <[email protected]>",
"luca70d <[email protected]>",
"blessedux <[email protected]>",
]
license = "MIT"
[dependencies]
# NOTE: keep bitcoin and secp256k1 versions in sync.
bitcoin = { version = "0.32.5", default-features = false, features = [
"std",
"serde",
"secp-recovery",
"rand",
] }
secp256k1 = { version = "0.29.0", features = ["global-context"] }
nostr = "0.39.0"
thiserror = "2.0.11"
esplora-client = { version = "0.11.0", default-features = false, features = [
"tokio",
"async-https-rustls",
] }
dioxus = { version = "0.6.3", features = ["router"] }
# web-sys and wasm-bindgen-futures is to get clipboard interactivity in WASM
web-sys = { version = "0.3.77", default-features = false, features = [
"Clipboard",
"Window",
"Navigator",
"Permissions",
] }
wasm-bindgen-futures = { version = "0.4.50" }
[dev-dependencies]
corepc-node = { version = "0.5.0", features = ["28_0", "download"] }
tracing = { version = "0.1.41", default-features = false }
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
tokio = { version = "1.43.0", features = ["rt", "macros"] }
[features]
default = ["web"]
web = ["dioxus/web"]
desktop = ["dioxus/desktop"]
mobile = ["dioxus/mobile"]
[lints]
rust.missing_debug_implementations = "warn"
rust.rust_2018_idioms = { level = "deny", priority = -1 }
rust.unreachable_pub = "warn"
rust.unused_crate_dependencies = "deny"
rust.unused_must_use = "deny"
rust.unsafe_code = "forbid"
rust.missing_docs = "warn"
rustdoc.all = "warn"
[profile.release]
opt-level = "z" # Optimized for size, use 3 for speed
lto = true # Enable Link Time Optimization
codegen-units = 1 # Reduced to increase optimizations
panic = "abort" # Abort on panic
strip = "symbols" # Strip symbols from binary
[profile.wasm-dev]
inherits = "dev"
opt-level = 1
[profile.server-dev]
inherits = "dev"
[profile.android-dev]
inherits = "dev"