Cargo.toml 1.99 KB
Newer Older
Hero Bird's avatar
Hero Bird committed
1
[package]
2
name = "ink_core"
Hero Bird's avatar
Hero Bird committed
3
version = "0.1.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]
Hero Bird's avatar
Hero Bird committed
18
ink_abi = { path = "../abi/", default-features = false, features = ["derive"], optional = true }
19
ink_alloc = { path = "../alloc/", default-features = false }
20
ink_primitives = { path = "../primitives/", default-features = false }
21
22
ink_core_derive = { path = "derive", default-features = false }
ink_prelude = { 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"] }
Hero Bird's avatar
Hero Bird committed
25
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
26
27
28
29
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"] }
30
31
32
33
34

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

37
[dev-dependencies]
38
itertools = "0.9"
39

40
[features]
41
default = ["std"]
42
std = [
Hero Bird's avatar
Hero Bird committed
43
    "ink_abi/std",
44
    "ink_alloc/std",
45
    "ink_prelude/std",
46
    "ink_primitives/std",
47
    "scale/std",
Hero Bird's avatar
Hero Bird committed
48
    "type-metadata/std",
49
50
51
    "rand",
    "rand/std",
    "num-traits/std",
52
]
Hero Bird's avatar
Hero Bird committed
53
54
55
56
ink-generate-abi = [
    "ink_abi",
    "type-metadata",
    "std",
Hero Bird's avatar
Hero Bird committed
57
]