Cargo.toml 2.26 KB
Newer Older
Hero Bird's avatar
Hero Bird committed
1
[package]
2
name = "ink_env"
3
version = "3.0.0-rc1"
Hero Bird's avatar
Hero Bird committed
4
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@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
homepage = "https://www.parity.io/"
12
description = "[ink!] Low-level interface for interacting with the smart contract Wasm executor."
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
ink_metadata = { version = "3.0.0-rc1", path = "../metadata/", default-features = false, features = ["derive"], optional = true }
ink_allocator = { version = "3.0.0-rc1", path = "../allocator/", default-features = false }
ink_primitives = { version = "3.0.0-rc1", path = "../primitives/", default-features = false }
ink_prelude = { version = "3.0.0-rc1", path = "../prelude/", default-features = false }
Hero Bird's avatar
Hero Bird committed
22

23
scale = { package = "parity-scale-codec", version = "1.3", default-features = false, features = ["derive", "full"] }
24
25
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] }
num-traits = { version = "0.2", default-features = false, features = ["i128"] }
26
cfg-if = "1.0"
27
paste = "1.0"
28
29
arrayref = "0.3"
static_assertions = "1.1"
30
31

# Hashes for the off-chain environment.
32
33
34
sha2 = { version = "0.9", optional = true }
sha3 = { version = "0.9", optional = true }
blake2 = { version = "0.9", optional = true }
35
36
37
38
39

# 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!
40
rand = { version = "0.7", default-features = false, features = ["alloc"], optional = true }
Andrew Jones's avatar
Andrew Jones committed
41
42
scale-info = { version = "0.4", default-features = false, features = ["derive"], optional = true }

43

44
[features]
45
default = ["std"]
46
std = [
47
48
    "ink_metadata",
    "ink_metadata/std",
49
    "ink_allocator/std",
50
    "ink_prelude/std",
51
    "ink_primitives/std",
52
    "scale/std",
53
    "scale-info",
Andrew Jones's avatar
Andrew Jones committed
54
    "scale-info/std",
55
56
57
    "rand",
    "rand/std",
    "num-traits/std",
58
59
    # Enables hashing crates for off-chain environment.
    "sha2",
60
61
    "sha3",
    "blake2",
62
]
Hero Bird's avatar
Hero Bird committed
63
ink-unstable-chain-extensions = []