mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-18 02:31:03 +00:00
0f1a9fb1eb
* remove Default from CandidateHash * Apply suggestions from code review Co-authored-by: Andronik Ordian <write@reusable.software> * chore: fmt * remove backed candidate default * Partial migration away from CandidateReceipt::default * Remove more CandidateReceipt defaults * fmt * Mostly remove CommittedCandidateReceipt default usage * Remove CommittedCandidateReceipt * Remove more Defaults from polakdot primitives v1 + fmt * Remove more Default from polkadot primites v1 * WIP trying to get overseer example + tests to compile * feat: add primitives test helpers * reduce deps of helper * update primitive helpers * make candidate validation compile * fixup cargo lock * make av-store compile * fixup disputes coordinator tests * test: fixup backing * test: fixup approval voting * fixup bitfield signing * test: fixup runtime-api * test: fixup availability dist * foxi[ pverseer test] * remove some Defaults, remove bounds from `dummy` All `fn dummy` in primitives need to be removed anyways. This aids in the transition. * it's a test helper, so always use std * test: fixup parachains runtime tests Excluding benches. * fix keyring * fix paras runtime properly, no more default * Remove fn dummy() usage from approval voting * Move TestCandidateBuilder out of av store to test helpers * Make candidate validation tests pass * Make most dispute coirdinator tests pass * Make provisioner tests work * Make availability recovery tests work with test helpers * Update polkadot-collator-protocol tests * Update statement distribution tests * Update polkadot overseer examples and tests * Derive default for validation code so we don't break unrelated things * Make para runtime test pass (no bench) * Some more work * chore: cargo fmt * cargo fix * avoid some Default::default * fixup dispute coordinator test * remove unused crate deps * remove Default::default wherever possible, replace by dummy_* for the most part * chore: cargo fmt * Remove some warnings * Remove CommittedCandidateReceipt dummy * Remove CandidateReceipt dummy * Remove CandidateDescriptor dummy * Remove commented out code * Fix para runtime tests * chore: nightly * Some updates to the builder * Dynamically adjust mock head data size * Make dispute cooridinator tests work * Fix test candidate_backing_reorders_votes work * +nightly-2021-10-29 fmt * Spelling and remove a default use in builder * Various clean up * More small updates * fmt * More small updates * Doc comments for test helpers * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_parachains_paras_inherent.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras_inherent --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras_inherent.rs * Update lib.rs * review comments * fix warnings * fix test by using correct candidate receipt relay parent Co-authored-by: Andronik Ordian <write@reusable.software> Co-authored-by: emostov <32168567+emostov@users.noreply.github.com> Co-authored-by: Parity Bot <admin@parity.io> Co-authored-by: Gavin Wood <gavin@parity.io>
155 lines
4.2 KiB
TOML
155 lines
4.2 KiB
TOML
[[bin]]
|
|
name = "polkadot"
|
|
path = "src/main.rs"
|
|
|
|
[package]
|
|
name = "polkadot"
|
|
description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
|
|
license = "GPL-3.0-only"
|
|
version = "0.9.13"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
readme = "README.md"
|
|
|
|
[dependencies]
|
|
polkadot-cli = { path = "cli", features = [ "kusama-native", "westend-native", "rococo-native" ] }
|
|
color-eyre = { version = "0.5.11", default-features = false }
|
|
parity-util-mem = { version = "*", default-features = false, features = ["jemalloc-global"] }
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2.0.2"
|
|
nix = "0.23.0"
|
|
tempfile = "3.2.0"
|
|
|
|
[workspace]
|
|
members = [
|
|
"cli",
|
|
"core-primitives",
|
|
"erasure-coding",
|
|
"primitives",
|
|
"primitives/test-helpers",
|
|
"runtime/common",
|
|
"runtime/common/slot_range_helper",
|
|
"runtime/parachains",
|
|
"runtime/polkadot",
|
|
"runtime/kusama",
|
|
"runtime/rococo",
|
|
"runtime/westend",
|
|
"runtime/test-runtime",
|
|
"statement-table",
|
|
"xcm",
|
|
"xcm/xcm-builder",
|
|
"xcm/xcm-executor",
|
|
"xcm/xcm-executor/integration-tests",
|
|
"xcm/xcm-simulator",
|
|
"xcm/xcm-simulator/example",
|
|
"xcm/xcm-simulator/fuzzer",
|
|
"xcm/pallet-xcm",
|
|
"xcm/pallet-xcm-benchmarks",
|
|
"xcm/procedural",
|
|
"node/client",
|
|
"node/collation-generation",
|
|
"node/core/approval-voting",
|
|
"node/core/av-store",
|
|
"node/core/backing",
|
|
"node/core/bitfield-signing",
|
|
"node/core/candidate-validation",
|
|
"node/core/chain-api",
|
|
"node/core/chain-selection",
|
|
"node/core/dispute-coordinator",
|
|
"node/core/parachains-inherent",
|
|
"node/core/provisioner",
|
|
"node/core/pvf",
|
|
"node/core/runtime-api",
|
|
"node/network/approval-distribution",
|
|
"node/network/bridge",
|
|
"node/network/protocol",
|
|
"node/network/statement-distribution",
|
|
"node/network/bitfield-distribution",
|
|
"node/network/availability-distribution",
|
|
"node/network/availability-recovery",
|
|
"node/network/collator-protocol",
|
|
"node/network/gossip-support",
|
|
"node/network/dispute-distribution",
|
|
"node/overseer",
|
|
"node/overseer/overseer-gen",
|
|
"node/overseer/overseer-gen/proc-macro",
|
|
"node/malus",
|
|
"node/primitives",
|
|
"node/service",
|
|
"node/subsystem",
|
|
"node/subsystem-types",
|
|
"node/subsystem-test-helpers",
|
|
"node/subsystem-util",
|
|
"node/jaeger",
|
|
"node/metrics",
|
|
"node/metered-channel",
|
|
"node/test/client",
|
|
"node/test/performance-test",
|
|
"node/test/service",
|
|
"node/test/polkadot-simnet/common",
|
|
"node/test/polkadot-simnet/node",
|
|
"node/test/polkadot-simnet/test",
|
|
"parachain/test-parachains",
|
|
"parachain/test-parachains/adder",
|
|
"parachain/test-parachains/adder/collator",
|
|
"utils/staking-miner",
|
|
"utils/remote-ext-tests/bags-list",
|
|
"utils/generate-bags",
|
|
]
|
|
|
|
# We want to be able to build the bridge relayer without pulling it (and all of its
|
|
# dependencies into the Polkadot workspace)
|
|
exclude = ["bridges/relays/bin-substrate", "bridges/bin/rialto/runtime", "bridges/bin/millau/runtime"]
|
|
|
|
[badges]
|
|
maintenance = { status = "actively-developed" }
|
|
|
|
# make sure dev builds with backtrace do
|
|
# not slow us down
|
|
[profile.dev.package.backtrace]
|
|
opt-level = 3
|
|
|
|
[profile.release]
|
|
# Polkadot runtime requires unwinding.
|
|
panic = "unwind"
|
|
|
|
[features]
|
|
runtime-benchmarks= [ "polkadot-cli/runtime-benchmarks" ]
|
|
try-runtime = [ "polkadot-cli/try-runtime" ]
|
|
disputes = [ "polkadot-cli/disputes" ]
|
|
|
|
# Configuration for building a .deb package - for use with `cargo-deb`
|
|
[package.metadata.deb]
|
|
name = "polkadot"
|
|
extended-description = "Implementation of a https://polkadot.network node in Rust based on the Substrate framework."
|
|
section = "misc"
|
|
maintainer = "martin@parity.io"
|
|
license-file = ["LICENSE", "0"]
|
|
# https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
|
|
maintainer-scripts = "scripts/packaging/deb-maintainer-scripts"
|
|
assets = [
|
|
["target/release/polkadot", "/usr/bin/", "755"],
|
|
["scripts/packaging/polkadot.service", "/lib/systemd/system/", "644"]
|
|
]
|
|
conf-files = [
|
|
"/etc/default/polkadot"
|
|
]
|
|
|
|
# Configuration for building an .rpm package - for use with `cargo-rpm`
|
|
[package.metadata.rpm]
|
|
package = "polkadot"
|
|
|
|
[package.metadata.rpm.cargo]
|
|
buildflags = ["--release"]
|
|
|
|
[package.metadata.rpm.targets]
|
|
polkadot = { path = "/usr/bin/polkadot" }
|
|
|
|
[package.metadata.rpm.files]
|
|
"../scripts/packaging/polkadot.service" = { path = "/usr/lib/systemd/system/polkadot.service", mode = "644" }
|
|
|
|
|
|
[package.metadata.spellcheck]
|
|
config = "./scripts/gitlab/spellcheck.toml"
|