Cargo.toml 2.96 KB
Newer Older
1
[workspace]
2
members = [".", "metadata", "transcode"]
3

4
[package]
5
name = "cargo-contract"
Michael Müller's avatar
Michael Müller committed
6
version = "1.4.0"
7
authors = ["Parity Technologies <admin@parity.io>"]
8
build = "build.rs"
Dan Shields's avatar
Dan Shields committed
9
edition = "2021"
10
11
12

license = "GPL-3.0"
readme = "README.md"
13
repository = "https://github.com/paritytech/cargo-contract"
14
documentation = "https://docs.substrate.io/tutorials/v3/ink-workshop/pt1/"
Hero Bird's avatar
Hero Bird committed
15
homepage = "https://www.parity.io/"
16
description = "Setup and deployment tool for developing Wasm based smart contracts via ink!"
17
keywords = ["wasm", "parity", "webassembly", "blockchain", "edsl"]
Andrew Jones's avatar
Andrew Jones committed
18
categories = ["command-line-utilities", "development-tools::build-utils", "development-tools::cargo-plugins"]
19
20
21
22
23
24
include = [
    "Cargo.toml", "src/**/*.rs", "README.md", "LICENSE", "build.rs", "templates", "src/**/*.scale",
    # We need to include `ink_linting` in the releases, so that the dylint driver which
    # is contained in that crate is build locally as part of the installation.
    "ink_linting", "!ink_linting/target/", "!ink_linting/ui/"
]
25
26

[dependencies]
27
env_logger = "0.9.0"
28
anyhow = "1.0.58"
29
clap = { version = "3.2.6", features = ["derive", "env"] }
30
log = "0.4.17"
31
heck = "0.4.0"
dependabot[bot]'s avatar
dependabot[bot] committed
32
zip = { version = "0.6.2", default-features = false }
33
parity-wasm = "0.45.0"
34
cargo_metadata = "0.14.3"
35
scale = { package = "parity-scale-codec", version = "3.0.0", features = ["derive"] }
36
which = "4.2.5"
37
colored = "2.0.0"
38
toml = "0.5.9"
39
rustc_version = "0.4.0"
40
blake2 = "0.10.4"
41
contract-metadata = { version = "1", path = "./metadata" }
42
transcode = { package = "contract-transcode", version = "0.1.0", path = "./transcode" }
43
semver = { version = "1.0.10", features = ["serde"] }
44
serde = { version = "1.0.137", default-features = false, features = ["derive"] }
45
serde_json = "1.0.81"
46
tempfile = "3.3.0"
47
url = { version = "2.2.2", features = ["serde"] }
48
impl-serde = "0.3.2"
49
regex = "1.5.6"
Qinxuan Chen's avatar
Qinxuan Chen committed
50

51
# dependencies for extrinsics (deploying and calling a contract)
52
async-std = { version = "1.12.0", features = ["attributes", "tokio1"] }
53
ink_metadata = { version = "3", features = ["derive"] }
54
55
sp-core = "6.0.0"
pallet-contracts-primitives = "6.0.0"
56
subxt = "0.22.0"
57
hex = "0.4.3"
58
jsonrpsee = { version = "0.14.0", features = ["ws-client"] }
59

60
[build-dependencies]
61
anyhow = "1.0.58"
dependabot[bot]'s avatar
dependabot[bot] committed
62
zip = { version = "0.6.2", default-features = false }
63
walkdir = "2.3.2"
64
substrate-build-script-utils = "3.0.0"
65
current_platform = "0.2.0"
66
which = "4.2.5"
67
regex = "1.5.6"
68
69

[dev-dependencies]
70
assert_cmd = "2.0.4"
71
pretty_assertions = "1.2.1"
72
wabt = "0.10.0"
73
regex = "1.5.6"
74
predicates = "2.1.1"
75

76
77
78
79
80
[features]
# This `std` feature is required for testing using an inline contract's metadata, because `ink!` annotates the metadata
# generation code with `#[cfg(feature = "std")]`.
default = ["std"]
std = []
81
82
83
84

# Enable this to execute long running tests, which usually are only run on the CI server
#
# Disabled by default
85
test-ci-only = []
86
87
88
89

# Enable this to execute tests which depend on a locally running contracts enabed chain
# e.g.https://github.com/paritytech/canvas-node
integration-tests = []