forked from darkswapfoundation/zkane
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
163 lines (132 loc) · 4.07 KB
/
Cargo.toml
File metadata and controls
163 lines (132 loc) · 4.07 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
[package]
name = "zkane"
version = "0.1.0"
edition = "2021"
description = "Privacy pool for alkanes assets using zero-knowledge proofs"
license = "MIT"
repository = "https://github.com/zkane-project/zkane"
[workspace]
members = [
".",
"alkanes/*",
"crates/zkane-common",
"crates/zkane-crypto",
"crates/zkane-core",
"crates/zkane-frontend",
]
[workspace.dependencies]
# Align with boiler's dependency versions exactly
alkanes = { git = "https://github.com/kungfuflex/alkanes-rs", features = ["test-utils"] }
alkanes-support = { git = "https://github.com/kungfuflex/alkanes-rs" }
alkanes-runtime = { git = "https://github.com/kungfuflex/alkanes-rs" }
alkanes-macros = { git = "https://github.com/kungfuflex/alkanes-rs" }
# Protorune dependencies - matching boiler
protorune = { git = "https://github.com/kungfuflex/alkanes-rs", features = ["test-utils"] }
protorune-support = { git = "https://github.com/kungfuflex/alkanes-rs" }
# Metashrew dependencies - matching boiler
metashrew-core = { git = "https://github.com/sandshrewmetaprotocols/metashrew", features = ["test-utils"] }
metashrew-support = { git = "https://github.com/sandshrewmetaprotocols/metashrew" }
# Ordinals - matching boiler
ordinals = { git = "https://github.com/kungfuflex/alkanes-rs" }
# Bitcoin and cryptography
bitcoin = { version = "0.32.4", features = ["rand"] }
sha2 = "0.10"
blake2 = "0.10"
hex = "0.4"
rand = "0.8"
# Arkworks cryptography
ark-ff = "0.4"
ark-ec = "0.4"
ark-std = "0.4"
ark-bn254 = "0.4"
ark-serialize = "0.4"
# WASM and web dependencies
wasm-bindgen = "0.2.100"
wasm-bindgen-futures = "0.4"
js-sys = "0.3"
web-sys = "0.3"
getrandom = { version = "0.2", features = ["js"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# Error handling
anyhow = "1.0.94"
thiserror = "1.0"
# Async and utilities
tokio = { version = "1.0", features = ["macros", "rt", "time"] }
once_cell = "1.0"
# Testing dependencies
wasm-bindgen-test = "0.3.49"
hex_lit = "0.1"
# Protobuf - exact version expected by alkanes dependency
protobuf = "3.7.2"
# Math utilities
ruint = "1.0"
[dependencies]
# Core ZKane crates
zkane-common = { path = "crates/zkane-common" }
zkane-crypto = { path = "crates/zkane-crypto" }
zkane-core = { path = "crates/zkane-core" }
# Only alkanes-support for ID types (not full alkanes framework)
alkanes-support = { workspace = true }
# Bitcoin and cryptography
bitcoin = { workspace = true }
sha2 = { workspace = true }
hex = { workspace = true }
getrandom = { workspace = true }
# Serialization
serde = { workspace = true }
serde_json = { workspace = true }
anyhow.workspace = true
thiserror = { workspace = true }
# Async and utilities
tokio = { workspace = true }
# Protobuf
protobuf = { workspace = true }
# Testing dependencies - Boiler pattern with clean test initialization
[dev-dependencies]
wasm-bindgen-test = { workspace = true }
metashrew-core = { workspace = true, features = ["test-utils"] }
metashrew-support = { workspace = true }
protorune = { workspace = true, features = ["test-utils"] }
protorune-support = { workspace = true }
alkanes = { workspace = true, features = ["test-utils"] }
alkanes-runtime = { workspace = true }
ordinals = { workspace = true }
hex_lit = { workspace = true }
ctor = "0.2" # For test environment initialization
# ZKane alkane contracts for testing
zkane-pool = { path = "alkanes/zkane-pool" }
zkane-factory = { path = "alkanes/zkane-factory" }
# Build dependencies
[build-dependencies]
anyhow = "1.0.90"
flate2 = "1.0.34"
hex = "0.4.3"
thiserror = "1.0"
[features]
default = ["std"]
std = []
wasm = []
debug-log = ["alkanes/debug-log"]
# Boiler pattern: Clean testing features
test-native = ["std"]
test-clean = []
# WASM-specific configuration
[lib]
crate-type = ["cdylib", "rlib"]
# Optimization for WASM builds
[profile.release]
opt-level = "s"
lto = true
codegen-units = 1
panic = "abort"
[profile.dev]
opt-level = 0
debug = true
overflow-checks = true
# WASM-pack configuration
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-Os", "--enable-mutable-globals"]
[package.metadata.wasm-pack.profile.dev]
wasm-opt = false