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

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

13
scale = { package = "parity-scale-codec", version = "1.0", 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

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

[features]
Hero Bird's avatar
Hero Bird committed
26
default = ["test-env"]
27
std = [
Hero Bird's avatar
Hero Bird committed
28
    "ink_abi/std",
29 30 31
    "ink_core/std",
    "ink_model/std",
    "ink_lang/std",
Hero Bird's avatar
Hero Bird committed
32
    "type-metadata/std",
33
    "scale/std",
34
]
35
test-env = [
Hero Bird's avatar
Hero Bird committed
36
	"std",
37 38
    "ink_core/test-env",
    "ink_model/test-env",
39
    "ink_lang/test-env",
40
]
Hero Bird's avatar
Hero Bird committed
41 42 43 44 45
ink-generate-abi = [
    "std",
    "ink_abi",
    "type-metadata",
    "ink_core/ink-generate-abi",
46
    "ink_lang/ink-generate-abi",
47
]
48
ink-as-dependency = []
49 50 51 52 53

[profile.release]
panic = "abort"
lto = true
opt-level = "z"
54
overflow-checks = true
Hero Bird's avatar
Hero Bird committed
55 56 57 58 59 60 61 62

[workspace]
members = [
	".ink/abi_gen"
]
exclude = [
	".ink"
]