Cargo.toml 2.4 KB
Newer Older
Hero Bird's avatar
Hero Bird committed
1
[package]
2
name = "ink_env"
Hero Bird's avatar
Hero Bird committed
3
version = "3.0.0-rc2"
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://docs.rs/ink_env/"
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]
Hero Bird's avatar
Hero Bird committed
18
19
20
21
ink_metadata = { version = "3.0.0-rc2", path = "../metadata/", default-features = false, features = ["derive"], optional = true }
ink_allocator = { version = "3.0.0-rc2", path = "../allocator/", default-features = false }
ink_primitives = { version = "3.0.0-rc2", path = "../primitives/", default-features = false }
ink_prelude = { version = "3.0.0-rc2", 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
[features]
44
default = ["std"]
45
std = [
46
47
    "ink_metadata",
    "ink_metadata/std",
48
    "ink_allocator/std",
49
    "ink_prelude/std",
50
    "ink_primitives/std",
51
    "scale/std",
52
    "scale-info",
Andrew Jones's avatar
Andrew Jones committed
53
    "scale-info/std",
54
55
56
    "rand",
    "rand/std",
    "num-traits/std",
57
58
    # Enables hashing crates for off-chain environment.
    "sha2",
59
60
    "sha3",
    "blake2",
61
]
Hero Bird's avatar
Hero Bird committed
62
ink-unstable-chain-extensions = []
63
64
65
66

# The feature is not yet utilized in this crate, but we need to add it
# here already anyway, since the CI tries to execute fuzzing on each crate.
ink-fuzz-tests = ["std"]