Cargo.toml 2.63 KB
Newer Older
Hero Bird's avatar
Hero Bird committed
[package]
version = "4.0.0"
authors = ["Parity Technologies <admin@parity.io>", "Robin Freyler <robin@parity.io>"]
Robin Freyler's avatar
Robin Freyler committed
edition = "2021"
Hero Bird's avatar
Hero Bird committed

license = "Apache-2.0"
Hero Bird's avatar
Hero Bird committed
readme = "README.md"
repository = "https://github.com/paritytech/ink"
documentation = "https://docs.rs/ink_env/"
homepage = "https://www.parity.io/"
description = "[ink!] Low-level interface for interacting with the smart contract Wasm executor."
Hero Bird's avatar
Hero Bird committed
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
categories = ["no-std", "embedded"]
Hero Bird's avatar
Hero Bird committed
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]
Hero Bird's avatar
Hero Bird committed

[dependencies]
ink_metadata = { version = "4.0.0", path = "../metadata/", default-features = false, features = ["derive"], optional = true }
ink_allocator = { version = "4.0.0", path = "../allocator/", default-features = false }
ink_primitives = { version = "4.0.0", path = "../primitives/", default-features = false }
ink_prelude = { version = "4.0.0", path = "../prelude/", default-features = false }
Hero Bird's avatar
Hero Bird committed

scale = { package = "parity-scale-codec", version = "3", default-features = false, features = ["derive", "full"] }
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] }
num-traits = { version = "0.2", default-features = false, features = ["i128"] }
arrayref = "0.3"
static_assertions = "1.1"
[target.'cfg(target_arch = "wasm32")'.dependencies]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
ink_engine = { version = "4.0.0", path = "../engine/", optional = true }
# Hashes for the off-chain environment.
sha2 = { version = "0.10", optional = true }
sha3 = { version = "0.10", optional = true }
blake2 = { version = "0.10", optional = true }
# ECDSA for the off-chain environment.
secp256k1 = { version = "0.22.0", features = ["recovery", "global-context"], optional = true }
# Only used in the off-chain environment.
#
# Sadly couldn't be marked as dev-dependency.
# Never use this crate outside the off-chain environment!
rand = { version = "0.8", default-features = false, features = ["alloc"], optional = true }
scale-info = { version = "2", default-features = false, features = ["derive"], optional = true }
[features]
default = ["std"]
    "ink_metadata/std",
    "ink_prelude/std",
    "ink_primitives/std",
Andrew Jones's avatar
Andrew Jones committed
    "scale-info/std",
    "rand/std_rng",
    "num-traits/std",
    # Enables hashing crates for off-chain environment.
    "sha2",
    "sha3",
    "blake2",
# Enable contract debug messages via `debug_print!` and `debug_println!`.
ink-debug = []
wee-alloc = ["ink_allocator/wee-alloc"]