Cargo.toml 2.14 KB
Newer Older
Hero Bird's avatar
Hero Bird committed
1
[package]
2
name = "ink_core"
3
version = "2.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_abi = { version = "2.0.0", path = "../abi/", default-features = false, features = ["derive"], optional = true }
ink_alloc = { version = "2.0.0", path = "../alloc/", default-features = false }
ink_primitives = { version = "2.0.0", path = "../primitives/", default-features = false }
ink_core_derive = { version = "2.0.0", path = "derive", default-features = false }
ink_prelude = { version = "2.0.0", path = "../prelude/", default-features = false }
Hero Bird's avatar
Hero Bird committed
23

24
scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive", "full"] }
25
26
27
28
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] }
smallvec = { version = "1.2", default-features = false, features = ["union"] }
cfg-if = "0.1"
num-traits = { version = "0.2", default-features = false, features = ["i128"] }
29
30
31
32
33

# 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!
34
rand = { version = "0.7", default-features = false, features = ["alloc"], optional = true }
Hero Bird's avatar
Hero Bird committed
35

36
37
38
39
40
41
42
[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

43
[dev-dependencies]
44
itertools = "0.9"
45

46
[features]
47
default = ["std"]
48
std = [
Hero Bird's avatar
Hero Bird committed
49
    "ink_abi/std",
50
    "ink_alloc/std",
51
    "ink_prelude/std",
52
    "ink_primitives/std",
53
    "scale/std",
Hero Bird's avatar
Hero Bird committed
54
    "type-metadata/std",
55
56
57
    "rand",
    "rand/std",
    "num-traits/std",
58
]
Hero Bird's avatar
Hero Bird committed
59
60
61
62
ink-generate-abi = [
    "ink_abi",
    "type-metadata",
    "std",
Hero Bird's avatar
Hero Bird committed
63
]