Cargo.toml 2.56 KB
Newer Older
Gav's avatar
Gav committed
1
2
[package]
name = "polkadot-cli"
3
version = "0.9.9"
Gav's avatar
Gav committed
4
authors = ["Parity Technologies <admin@parity.io>"]
5
description = "Polkadot Relay-chain Client Node"
6
edition = "2018"
Gav's avatar
Gav committed
7

Ashley's avatar
Ashley committed
8
9
10
11
12
[package.metadata.wasm-pack.profile.release]
# `wasm-opt` has some problems on linux, see
# https://github.com/rustwasm/wasm-pack/issues/781 etc.
wasm-opt = false

13
14
15
[lib]
crate-type = ["cdylib", "rlib"]

Gav's avatar
Gav committed
16
[dependencies]
17
log = "0.4.13"
18
thiserror = "1.0.26"
19
structopt = { version = "0.3.21", optional = true }
20
futures = "0.3.17"
21

22
service = { package = "polkadot-service", path = "../node/service", default-features = false, optional = true }
23
polkadot-node-core-pvf = { path = "../node/core/pvf", optional = true }
Gavin Wood's avatar
Gavin Wood committed
24

25
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
26
frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
Kian Paimani's avatar
Kian Paimani committed
27
try-runtime-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
28
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
29
sc-service = { git = "https://github.com/paritytech/substrate", branch = "master", optional = true }
30

31
32
33
# this crate is used only to enable `trie-memory-tracker` feature
# see https://github.com/paritytech/substrate/pull/6745
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
34

35
36
37
[build-dependencies]
substrate-build-script-utils = { git = "https://github.com/paritytech/substrate", branch = "master" }

Gavin Wood's avatar
Gavin Wood committed
38
[features]
39
40
default = [ "wasmtime", "db", "cli", "full-node", "trie-memory-tracker" ]
wasmtime = [ "sc-cli/wasmtime" ]
41
db = [ "service/db" ]
42
cli = [
43
	"structopt",
44
	"sc-cli",
45
	"sc-service",
46
	"frame-benchmarking-cli",
Kian Paimani's avatar
Kian Paimani committed
47
	"try-runtime-cli",
48
	"polkadot-node-core-pvf",
49
50
51
52
53
54
55
# memory stats require jemalloc, which we know is enabled for linux
# but not present on wasm or windows
# https://github.com/paritytech/parity-common/blob/master/parity-util-mem/src/allocators.rs#L9-L34
# Once
# https://github.com/rust-lang/cargo/issues/1197
# is resolved.
	"service/memory-stats",
56
]
57
runtime-benchmarks = [ "service/runtime-benchmarks" ]
58
trie-memory-tracker = [ "sp-trie/memory-tracker" ]
59
full-node = [ "service/full-node" ]
Kian Paimani's avatar
Kian Paimani committed
60
try-runtime = [ "service/try-runtime" ]
61
62
63
64
65
66
67

# Configure the native runtimes to use. Polkadot is always enabled by default.
#
# Validators require the native runtime currently
kusama-native = [ "service/kusama-native" ]
westend-native = [ "service/westend-native" ]
rococo-native = [ "service/rococo-native" ]
68
69

malus = [ "full-node", "service/malus" ]
70
disputes = [ "service/disputes" ]