Cargo.toml 3.45 KB
Newer Older
Hero Bird's avatar
Hero Bird committed
1
[package]
2
name = "ink_env"
3
version = "4.0.0-alpha.3"
Hero Bird's avatar
Hero Bird committed
4
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
Robin Freyler's avatar
Robin Freyler committed
5
edition = "2021"
Hero Bird's avatar
Hero Bird committed
6

7
license = "Apache-2.0"
Hero Bird's avatar
Hero Bird committed
8
readme = "README.md"
9
repository = "https://github.com/paritytech/ink"
Hero Bird's avatar
Hero Bird committed
10
documentation = "https://docs.rs/ink_env/"
11
homepage = "https://www.parity.io/"
12
description = "[ink!] Low-level interface for interacting with the smart contract Wasm executor."
Hero Bird's avatar
Hero Bird committed
13
14
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
categories = ["no-std", "embedded"]
Hero Bird's avatar
Hero Bird committed
15
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
Hero Bird's avatar
Hero Bird committed
16
17

[dependencies]
18
19
20
21
22
ink_metadata = { version = "4.0.0-alpha.3", path = "../metadata", default-features = false, features = ["derive"], optional = true }
ink_allocator = { version = "4.0.0-alpha.3", path = "../allocator", default-features = false }
ink_storage_traits = { version = "4.0.0-alpha.3", path = "../storage/traits", default-features = false }
ink_prelude = { version = "4.0.0-alpha.3", path = "../prelude", default-features = false }
ink_primitives = { version = "4.0.0-alpha.3", path = "../primitives", default-features = false }
Hero Bird's avatar
Hero Bird committed
23

24
scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] }
25
26
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] }
num-traits = { version = "0.2", default-features = false, features = ["i128"] }
27
cfg-if = "1.0"
28
paste = "1.0"
29
30
arrayref = "0.3"
static_assertions = "1.1"
31

32
[target.'cfg(target_arch = "wasm32")'.dependencies]
33
rlibc = "1"
34
35

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
36
ink_engine = { version = "4.0.0-alpha.3", path = "../engine/", optional = true }
37

38
# Hashes for the off-chain environment.
39
sha2 = { version = "0.10", optional = true }
40
sha3 = { version = "0.10", optional = true }
41
blake2 = { version = "0.10", optional = true }
42

43
# ECDSA for the off-chain environment.
Alexander Theißen's avatar
Alexander Theißen committed
44
secp256k1 = { version = "0.24", features = ["recovery", "global-context"], optional = true }
45

46
47
48
# Only used in the off-chain environment.
#
# Sadly couldn't be marked as dev-dependency.
49
# Never use this crate outside the off-chain environment!
50
rand = { version = "0.8", default-features = false, features = ["alloc"], optional = true }
51
scale-info = { version = "2", default-features = false, features = ["derive"], optional = true }
Andrew Jones's avatar
Andrew Jones committed
52

53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
contract-metadata = "2.0.0-alpha.2"
impl-serde = { version = "0.3.1", default-features = false }
jsonrpsee = { version = "0.14.0", features = ["ws-client"] }
pallet-contracts-primitives = "6.0.0"
serde = { version = "1.0.137", default-features = false, features = ["derive"] }
serde_json = "1.0.81"
tokio = { version = "1.18.2", features = ["rt-multi-thread"] }
log = "0.4"
env_logger = "0.8"
subxt = "0.24.0"

# Substrate
sp-rpc = "6.0.0"
sp-core = "6.0.0"
sp-keyring = "6.0.0"
sp-runtime = "6.0.0"

# TODO(#xxx) `smart-bench_macro` needs to be forked.
smart-bench-macro = { git = "https://github.com/paritytech/smart-bench", branch = "cmichi-ink-e2e-test-mvp", package = "smart-bench-macro"}

73
[features]
74
default = ["std"]
75
std = [
76
    "ink_metadata/std",
77
    "ink_allocator/std",
78
    "ink_prelude/std",
79
    "ink_primitives/std",
80
    "ink_storage_traits/std",
81
    "ink_engine/std",
82
    "scale/std",
Andrew Jones's avatar
Andrew Jones committed
83
    "scale-info/std",
84
    "secp256k1",
85
    "rand/std",
86
    "rand/std_rng",
87
    "num-traits/std",
88
89
    # Enables hashing crates for off-chain environment.
    "sha2",
90
91
    "sha3",
    "blake2",
92
]
93
94
# Enable contract debug messages via `debug_print!` and `debug_println!`.
ink-debug = []