Cargo.toml 1.47 KB
Newer Older
1 2 3 4 5 6 7
[package]
name = "{{name}}"
version = "0.1.0"
authors = ["[your_name] <[your_email]>"]
edition = "2018"

[dependencies]
Hero Bird's avatar
Hero Bird committed
8
ink_abi = { git = "https://github.com/paritytech/ink", package = "ink_abi", default-features = false, optional = true }
9 10 11
ink_core = { git = "https://github.com/paritytech/ink", package = "ink_core", default-features = false }
ink_model = { git = "https://github.com/paritytech/ink", package = "ink_model", default-features = false }
ink_lang = { git = "https://github.com/paritytech/ink", package = "ink_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 = "{{name}}"
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",
32
    "scale/std",
Hero Bird's avatar
Hero Bird committed
33
    "type-metadata/std",
34
]
35
test-env = [
36
    "std",
37 38 39 40
    "ink_core/test-env",
    "ink_model/test-env",
    "ink_lang/test-env",
]
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 49 50 51 52
]

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

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