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

[dependencies]
8
ink_primitives = { path = "../../../primitives", default-features = false }
Hero Bird's avatar
Hero Bird committed
9
10
11
12
ink_abi = { path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../../core", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }

13
scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
Hero Bird's avatar
Hero Bird committed
14
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
15

16
17
accumulator = { path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }

18
[lib]
19
20
name = "adder"
path = "lib.rs"
Hero Bird's avatar
Hero Bird committed
21
22
23
24
25
26
crate-type = [
	# Used for normal contract Wasm blobs.
	"cdylib",
	# Used for ABI generation.
	"rlib",
]
27
28

[features]
Hero Bird's avatar
Hero Bird committed
29
30
default = ["test-env"]
std = [
31
    "ink_primitives/std",
Hero Bird's avatar
Hero Bird committed
32
33
34
35
36
    "ink_abi/std",
    "ink_core/std",
    "ink_lang/std",
    "scale/std",
    "type-metadata/std",
37
38

    "accumulator/std",
Hero Bird's avatar
Hero Bird committed
39
]
40
test-env = [
Hero Bird's avatar
Hero Bird committed
41
	"std",
42
43
    "ink_lang/test-env",
]
Hero Bird's avatar
Hero Bird committed
44
45
46
47
48
ink-generate-abi = [
    "std",
    "ink_abi",
    "type-metadata",
    "ink_core/ink-generate-abi",
49
    "ink_lang/ink-generate-abi",
50

51
    "accumulator/ink-generate-abi",
Hero Bird's avatar
Hero Bird committed
52
]
53
ink-as-dependency = []