Cargo.toml 2.96 KB
Newer Older
Hero Bird's avatar
Hero Bird committed
1
[package]
2
name = "ink_core"
3
version = "3.0.0"
4
authors = ["Parity Technologies <admin@parity.io>"]
Hero Bird's avatar
Hero Bird committed
5
6
edition = "2018"

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://substrate.dev/substrate-contracts-workshop/#/"
11
12
homepage = "https://www.parity.io/"
description = "[ink!] Rust based eDSL for writing smart contracts for Substrate"
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 = "3.0.0", path = "../metadata/", default-features = false, features = ["derive"], optional = true }
ink_alloc = { version = "3.0.0", path = "../alloc/", default-features = false }
ink_primitives = { version = "3.0.0", path = "../primitives/", default-features = false }
ink_core_derive = { version = "3.0.0", path = "derive", default-features = false }
ink_prelude = { version = "3.0.0", path = "../prelude/", default-features = false }
Hero Bird's avatar
Hero Bird committed
23

24
scale = { package = "parity-scale-codec", version = "1.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
28
29
cfg-if = "0.1"
array-init = "0.1"
generic-array = "0.14.1"
30
paste = "0.1"
31
32
arrayref = "0.3"
static_assertions = "1.1"
33
34

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

# Only used in the off-chain environment.
#
# Sadly couldn't be marked as dev-dependency.
# Never use this crate outside of the off-chain environment!
43
rand = { version = "0.7", default-features = false, features = ["alloc"], optional = true }
44
scale-info = { version = "0.3", default-features = false, features = ["derive"], optional = true }
45

46
47
48
49
50
51
# Workaround: we actually just need criterion as a dev-dependency, but
# there is an issue with a doubly included std lib when executing
# `cargo check --no-default-features --target wasm32-unknown-unknown`.
# We haven't found a better solution yet.
criterion = { version = "0.3", optional = true }

52
[dev-dependencies]
53
54
quickcheck = "0.9"
quickcheck_macros = "0.8"
55
itertools = "0.9"
56

57
[features]
58
default = ["std"]
59
std = [
60
    "criterion",
61
62
    "ink_metadata",
    "ink_metadata/std",
63
    "ink_alloc/std",
64
    "ink_prelude/std",
65
    "ink_primitives/std",
66
    "scale/std",
67
    "scale-info",
Andrew Jones's avatar
Andrew Jones committed
68
    "scale-info/std",
69
70
71
    "rand",
    "rand/std",
    "num-traits/std",
72
73
    # Enables hashing crates for off-chain environment.
    "sha2",
74
75
    "sha3",
    "blake2",
76
]
77
ink-fuzz-tests = ["std"]
Hero Bird's avatar
Hero Bird committed
78
ink-unstable-chain-extensions = []
79

80
81
82
83
[[bench]]
name = "bench_lazy"
harness = false

84
[[bench]]
85
86
87
88
89
name = "bench_vec"
harness = false

[[bench]]
name = "bench_stash"
90
harness = false
91
92
93
94

[[bench]]
name = "bench_bitstash"
harness = false
95
96
97
98

[[bench]]
name = "bench_hashmap"
harness = false