Cargo.toml 1.49 KB
Newer Older
1
[package]
2
name = "adder"
3
version = "2.0.0"
4
5
6
7
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
8
9
10
11
12
13
ink_primitives = { version = "2.0.0", path = "../../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../../lang", default-features = false }

accumulator = { version = "2.0.0", path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }
Hero Bird's avatar
Hero Bird committed
14

15
scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
16

17
18
19
20
21
22
23
[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

24

25
[lib]
26
27
name = "adder"
path = "lib.rs"
Hero Bird's avatar
Hero Bird committed
28
29
30
31
32
33
crate-type = [
	# Used for normal contract Wasm blobs.
	"cdylib",
	# Used for ABI generation.
	"rlib",
]
34
35

[features]
Hero Bird's avatar
Hero Bird committed
36
37
default = ["test-env"]
std = [
38
    "ink_primitives/std",
Hero Bird's avatar
Hero Bird committed
39
40
41
42
43
    "ink_abi/std",
    "ink_core/std",
    "ink_lang/std",
    "scale/std",
    "type-metadata/std",
44
45

    "accumulator/std",
Hero Bird's avatar
Hero Bird committed
46
]
47
test-env = [
Hero Bird's avatar
Hero Bird committed
48
	"std",
49
50
    "ink_lang/test-env",
]
Hero Bird's avatar
Hero Bird committed
51
52
53
54
55
ink-generate-abi = [
    "std",
    "ink_abi",
    "type-metadata",
    "ink_core/ink-generate-abi",
56
    "ink_lang/ink-generate-abi",
57

58
    "accumulator/ink-generate-abi",
Hero Bird's avatar
Hero Bird committed
59
]
60
ink-as-dependency = []