forked from Supercolony-net/obce
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
114 lines (102 loc) · 2.98 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
[workspace]
members = [
"codegen",
"macro"
]
exclude = [
"tests/e2e/contract"
]
[package]
name = "obce"
version = "0.1.0"
authors = ["727.Ventures <[email protected]>"]
edition = "2021"
license = "MIT"
repository = "https://github.com/Brushfam/obce"
documentation = "https://github.com/Brushfam/obce/blob/main/README.md"
homepage = "https://727.ventures"
description = "OpenBursh chain extension(OBCE) - util to simplify chain extension development."
keywords = ["wasm", "smart-contracts", "blockchain", "chain-extension"]
categories = ["no-std", "embedded"]
include = ["Cargo.toml", "src/**/*.rs"]
[dependencies]
# Common deps
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2.3", default-features = false, features = ["derive"] }
obce-macro = { version = "0.1.0", path = "macro", default-features = false }
# Substrate deps
sp-core = { version = "23", default-features = false, optional = true }
sp-runtime = { version = "26", default-features = false, optional = true }
sp-std = { version = "10", default-features = false, optional = true }
sp-weights = { version = "22", default-features = false, optional = true }
frame-support = { version = "23", default-features = false, optional = true }
frame-system = { version = "23", default-features = false, optional = true }
pallet-contracts = { version = "22", default-features = false, optional = true }
# Ink deps
ink = { version = "4.2.0", default-features = false, optional = true }
ink_engine = { version = "4.2.0", default-features = false, optional = true }
[dev-dependencies]
frame-support = { version = "23", default-features = false, features = ["std"] }
frame-system = { version = "23", default-features = false, features = ["std"] }
ink = { version = "4.2.0", default-features = false, features = ["std"] }
trybuild = "1.0"
[features]
default = ["std"]
substrate = [
"pallet-contracts",
"frame-system",
"frame-support",
"sp-core",
"sp-runtime",
"sp-std",
]
ink = [
"dep:ink",
]
std = [
"scale-info/std",
"scale/std",
]
substrate-std = [
"std",
"substrate",
"pallet-contracts/std",
"frame-system/std",
"frame-support/std",
"sp-core/std",
"sp-runtime/std",
"sp-std/std",
"sp-weights/std",
]
ink-std = [
"std",
"ink",
"ink/std",
"ink_engine/std"
]
runtime-benchmarks = [
"frame-system/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"pallet-contracts/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
]
[[test]]
name = "error-macro"
path = "tests/error.rs"
required-features = ["substrate-std"]
[[test]]
name = "mock-macro"
path = "tests/mock.rs"
required-features = ["ink-std"]
[[test]]
name = "ink-environment"
path = "tests/environment.rs"
required-features = ["ink-std"]
[[test]]
name = "substrate-ui"
path = "tests/ui/substrate.rs"
required-features = ["substrate-std"]
[[test]]
name = "ink-ui"
path = "tests/ui/ink.rs"
required-features = ["ink-std"]