mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 22:11:02 +00:00
Set clippy lints in workspace (requires rust 1.74) (#2390)
We currently use a bit of a hack in `.cargo/config` to make sure that clippy isn't too annoying by specifying the list of lints. There is now a stable way to define lints for a workspace. The only down side is that every crate seems to have to opt into this so there's a *few* files modified in this PR. Dependencies: - [x] PR that upgrades CI to use rust 1.74 is merged. --------- Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com> Co-authored-by: Branislav Kontur <bkontur@gmail.com> Co-authored-by: Liam Aharon <liam.aharon@hotmail.com>
This commit is contained in:
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Logic which is common to all parachain runtimes"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Asset Hub Rococo emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Asset Hub Westend emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Bridge Hub Rococo emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Bridge Hub Westend emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Collectives Westend emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Penpal emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Rococo emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Westend emulated chain"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde_json = "1.0.104"
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
description = "Common resources for integration testing with xcm-emulator"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
|
||||
paste = "1.0.14"
|
||||
|
||||
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Rococo System emulated network"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# Cumulus
|
||||
emulated-integration-tests-common = { path = "../../common", default-features = false }
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Rococo<>Westend emulated bridged network"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# Cumulus
|
||||
emulated-integration-tests-common = { path = "../../common", default-features = false }
|
||||
|
||||
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Westend System emulated network"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
# Cumulus
|
||||
emulated-integration-tests-common = { path = "../../common", default-features = false }
|
||||
|
||||
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Asset Hub Rococo runtime integration tests with xcm-emulator"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
|
||||
assert_matches = "1.5.0"
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Asset Hub Westend runtime integration tests with xcm-emulator"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
|
||||
assert_matches = "1.5.0"
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Bridge Hub Rococo runtime integration tests with xcm-emulator"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
|
||||
|
||||
|
||||
+3
@@ -7,6 +7,9 @@ license = "Apache-2.0"
|
||||
description = "Bridge Hub Westend runtime integration tests with xcm-emulator"
|
||||
publish = false
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.4.0", default-features = false }
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ edition = "2021"
|
||||
description = "Managed content"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -6,6 +6,9 @@ version = "0.1.0"
|
||||
license = "Apache-2.0"
|
||||
description = "Pallet to store the parachain ID"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -6,6 +6,9 @@ version = "0.1.0"
|
||||
license = "Apache-2.0"
|
||||
description = "Ping Pallet for Cumulus XCM/UMP testing."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Rococo variant of Asset Hub parachain runtime"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
||||
hex-literal = { version = "0.4.1" }
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Westend variant of Asset Hub parachain runtime"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
||||
hex-literal = { version = "0.4.1", optional = true }
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Assets common utilities"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Test utils for Asset Hub runtimes."
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Rococo's BridgeHub parachain runtime"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true }
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Westend's BridgeHub parachain runtime"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
substrate-wasm-builder = { path = "../../../../../substrate/utils/wasm-builder", optional = true }
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Utils for BridgeHub testing"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
||||
impl-trait-for-tuples = "0.2"
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
description = "Westend Collectives Parachain Runtime"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
||||
hex-literal = { version = "0.4.1" }
|
||||
|
||||
@@ -6,6 +6,9 @@ authors.workspace = true
|
||||
edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
description = "Glutton parachain runtime."
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -6,6 +6,9 @@ authors.workspace = true
|
||||
edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -6,6 +6,9 @@ authors.workspace = true
|
||||
edition.workspace = true
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Utils for Runtimes testing"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive", "max-encoded-len"] }
|
||||
|
||||
|
||||
@@ -8,6 +8,9 @@ homepage = "https://substrate.io"
|
||||
repository.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@ edition.workspace = true
|
||||
description = "Simple runtime used by the rococo parachain(s)"
|
||||
license = "Apache-2.0"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
|
||||
scale-info = { version = "2.10.0", default-features = false, features = ["derive"] }
|
||||
|
||||
Reference in New Issue
Block a user