-
Notifications
You must be signed in to change notification settings - Fork 450
/
Copy pathCargo.toml
78 lines (66 loc) · 2.73 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
[package]
name = "ink_env"
version = "4.0.0"
authors = ["Parity Technologies <[email protected]>", "Robin Freyler <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/paritytech/ink"
documentation = "https://docs.rs/ink_env/"
homepage = "https://www.parity.io/"
description = "[ink!] Low-level interface for interacting with the smart contract Wasm executor."
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
categories = ["no-std", "embedded"]
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
[dependencies]
ink_metadata = { version = "4.0.0", path = "../metadata", default-features = false, features = ["derive"], optional = true }
ink_allocator = { version = "4.0.0", path = "../allocator", default-features = false }
ink_storage_traits = { version = "4.0.0", path = "../storage/traits", default-features = false }
ink_prelude = { version = "4.0.0", path = "../prelude", default-features = false }
ink_primitives = { version = "4.0.0", path = "../primitives", default-features = false }
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] }
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] }
num-traits = { version = "0.2", default-features = false, features = ["i128"] }
cfg-if = "1.0"
paste = "1.0"
arrayref = "0.3"
static_assertions = "1.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]
rlibc = "1"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ink_engine = { version = "4.0.0", path = "../engine/", optional = true }
# Hashes for the off-chain environment.
sha2 = { version = "0.10", optional = true }
sha3 = { version = "0.10", optional = true }
blake2 = { version = "0.10", optional = true }
# ECDSA for the off-chain environment.
secp256k1 = { version = "0.26.0", features = ["recovery", "global-context"], optional = true }
# Only used in the off-chain environment.
#
# Sadly couldn't be marked as dev-dependency.
# Never use this crate outside the off-chain environment!
scale-info = { version = "2.3", default-features = false, features = ["derive"], optional = true }
[dev-dependencies]
ink = { path = "../ink" }
[features]
default = ["std"]
std = [
"ink_metadata/std",
"ink_allocator/std",
"ink_prelude/std",
"ink_primitives/std",
"ink_storage_traits/std",
"ink_engine/std",
"scale/std",
"scale-info/std",
"secp256k1",
"num-traits/std",
# Enables hashing crates for off-chain environment.
"sha2",
"sha3",
"blake2",
]
# Enable contract debug messages via `debug_print!` and `debug_println!`.
ink-debug = []
# Disable the ink! provided global memory allocator.
no-allocator = ["ink_allocator/no-allocator"]