-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
98 lines (95 loc) · 3.39 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[workspace]
package.authors = ["Link <[email protected]>"]
package.edition = "2021"
package.license = "MIT"
resolver = "2"
members = [
# Common libs
"libs/das-core",
"libs/das-dynamic-libs",
"libs/das-map",
"libs/das-sorted-list",
"libs/eip712",
"libs/simple-ast",
"libs/das-types",
"libs/witness-parser",
# Contracts
"contracts/always-success",
"contracts/account-cell-type",
"contracts/account-sale-cell-type",
"contracts/apply-register-cell-type",
"contracts/balance-cell-type",
"contracts/config-cell-type",
"contracts/income-cell-type",
"contracts/offer-cell-type",
"contracts/pre-account-cell-type",
"contracts/proposal-cell-type",
"contracts/reverse-record-cell-type",
"contracts/reverse-record-root-cell-type",
"contracts/sub-account-cell-type",
"contracts/eip712-lib",
"contracts/device-key-list-cell-type",
"contracts/dpoint-cell-type",
# Only for unit tests
"tests",
"contracts/test-env",
"contracts/playground",
]
default-members = [
"contracts/always-success",
"contracts/account-cell-type",
"contracts/account-sale-cell-type",
"contracts/apply-register-cell-type",
"contracts/balance-cell-type",
"contracts/config-cell-type",
"contracts/income-cell-type",
"contracts/offer-cell-type",
"contracts/pre-account-cell-type",
"contracts/proposal-cell-type",
"contracts/reverse-record-cell-type",
"contracts/reverse-record-root-cell-type",
"contracts/sub-account-cell-type",
"contracts/eip712-lib",
"contracts/device-key-list-cell-type",
"contracts/dpoint-cell-type",
]
[workspace.dependencies]
# workspace crates
das-types = { path = "libs/das-types", default-features = false }
# 对于需要同时支持 std 和 no_std 的 crate ,不要放在 workspace 中,否则会导致两种 feature 同时启用带来编译冲突
simple-ast = { path = "libs/simple-ast", default-features = false }
das-core = { path = "libs/das-core", default-features = false }
das-map = { path = "libs/das-map", default-features = false }
das-dynamic-libs = { path = "libs/das-dynamic-libs" }
das-sorted-list = { path = "libs/das-sorted-list", default-features = false }
eip712 = { path = "libs/eip712" }
witness-parser = { path = "libs/witness-parser", default-features = false }
# ckb crates
sparse-merkle-tree = { version = "0.6.1", default-features = false, features = [ "smtc" ] }
ckb-std = "0.13.0"
ckb-types = { version = "=0.108.0" }
molecule = { version = "0.7", default-features = false }
# third party crates
blake2b-rs = { version = "0.2" }
blake2b-ref = { version = "0.3" }
hex = { version = "0.4.2", default-features = false }
# Temporarily use thiserror-no-std
thiserror = { version = "1.0" }
thiserror-no-std = { version = "=2.0.2", default-features = false }
anyhow = { version = "1.0", default-features = false }
dotenvy = { version = "0.15" }
no-std-compat = { version = "0.4", features = [ "alloc", "compat_macros" ] }
strum = { version = "0.25", features = ["derive"], default-features = false }
num_enum = { version = "0.7.1", default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
chrono = { version = "0.4", default-features = false }
paste = "1.0"
log = "0.4.0"
primitive-types = { version = "0.12.2", default-features = false }
[profile.release]
overflow-checks = true
opt-level = 2
lto = true
codegen-units = 1
panic = 'abort'