Skip to content

Commit

Permalink
Add/fix some lints
Browse files Browse the repository at this point in the history
A bit unrelated to this PR, but was it worth opening a new one? 🤔
  • Loading branch information
mrcnski committed Dec 4, 2023
1 parent 0fee7b0 commit 4290783
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 20 deletions.
6 changes: 0 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 6 additions & 7 deletions polkadot/node/core/pvf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ cfg-if = "1.0"
futures = "0.3.21"
futures-timer = "3.0.2"
gum = { package = "tracing-gum", path = "../../gum" }
is_executable = "1.0.1"
libc = "0.2.139"
is_executable = { version = "1.0.1", optional = true }
pin-project = "1.0.9"
rand = "0.8.5"
slotmap = "1.0"
Expand All @@ -33,9 +32,7 @@ polkadot-node-subsystem = { path = "../../subsystem" }
polkadot-primitives = { path = "../../../primitives" }

sp-core = { path = "../../../../substrate/primitives/core" }
sp-wasm-interface = { path = "../../../../substrate/primitives/wasm-interface" }
sp-maybe-compressed-blob = { path = "../../../../substrate/primitives/maybe-compressed-blob" }
polkadot-node-core-pvf-prepare-worker = { path = "prepare-worker", optional = true }
sp-maybe-compressed-blob = { path = "../../../../substrate/primitives/maybe-compressed-blob", optional = true }
polkadot-node-core-pvf-execute-worker = { path = "execute-worker", optional = true }

[dev-dependencies]
Expand All @@ -53,6 +50,7 @@ adder = { package = "test-parachain-adder", path = "../../../parachain/test-para
halt = { package = "test-parachain-halt", path = "../../../parachain/test-parachains/halt" }

[target.'cfg(target_os = "linux")'.dev-dependencies]
libc = "0.2.139"
procfs = "0.16.0"
rusty-fork = "0.3.0"
sc-sysinfo = { path = "../../../../substrate/client/sysinfo" }
Expand All @@ -66,6 +64,7 @@ ci-only-tests = []
jemalloc-allocator = ["polkadot-node-core-pvf-common/jemalloc-allocator"]
# This feature is used to export test code to other crates without putting it in the production build.
test-utils = [
"polkadot-node-core-pvf-execute-worker",
"polkadot-node-core-pvf-prepare-worker",
"dep:is_executable",
"dep:sp-maybe-compressed-blob",
"dep:polkadot-node-core-pvf-execute-worker",
]
1 change: 0 additions & 1 deletion polkadot/node/core/pvf/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ edition.workspace = true
license.workspace = true

[dependencies]
cfg-if = "1.0"
cpu-time = "1.0.0"
futures = "0.3.21"
gum = { package = "tracing-gum", path = "../../../gum" }
Expand Down
2 changes: 2 additions & 0 deletions polkadot/node/core/pvf/common/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

//! Contains functionality related to PVFs that is shared by the PVF host and the PVF workers.

#![deny(unused_crate_dependencies)]

pub mod error;
pub mod execute;
pub mod executor_interface;
Expand Down
3 changes: 3 additions & 0 deletions polkadot/node/core/pvf/execute-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

//! Contains the logic for executing PVFs. Used by the polkadot-execute-worker binary.

#![deny(unused_crate_dependencies)]
#![warn(missing_docs)]

pub use polkadot_node_core_pvf_common::{
executor_interface::execute_artifact, worker_dir, SecurityStatus,
};
Expand Down
4 changes: 0 additions & 4 deletions polkadot/node/core/pvf/prepare-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ blake3 = "1.5"
cfg-if = "1.0"
gum = { package = "tracing-gum", path = "../../../gum" }
libc = "0.2.139"
rayon = "1.5.1"
tracking-allocator = { package = "staging-tracking-allocator", path = "../../../tracking-allocator" }
tikv-jemalloc-ctl = { version = "0.5.0", optional = true }
tikv-jemallocator = { version = "0.5.0", optional = true }
Expand All @@ -23,9 +22,6 @@ parity-scale-codec = { version = "3.6.1", default-features = false, features = [
polkadot-node-core-pvf-common = { path = "../common" }
polkadot-primitives = { path = "../../../../primitives" }

sc-executor-common = { path = "../../../../../substrate/client/executor/common" }
sc-executor-wasmtime = { path = "../../../../../substrate/client/executor/wasmtime" }

[target.'cfg(target_os = "linux")'.dependencies]
tikv-jemallocator = "0.5.0"
tikv-jemalloc-ctl = "0.5.0"
Expand Down
3 changes: 3 additions & 0 deletions polkadot/node/core/pvf/prepare-worker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

//! Contains the logic for preparing PVFs. Used by the polkadot-prepare-worker binary.

#![deny(unused_crate_dependencies)]
#![warn(missing_docs)]

mod memory_stats;

use polkadot_node_core_pvf_common::executor_interface::{prepare, prevalidate};
Expand Down
4 changes: 2 additions & 2 deletions polkadot/node/core/pvf/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Polkadot. If not, see <http://www.gnu.org/licenses/>.

#![warn(missing_docs)]

//! The PVF validation host. Responsible for coordinating preparation and execution of PVFs.
//!
//! For more background, refer to the Implementer's Guide: [PVF
Expand Down Expand Up @@ -90,6 +88,8 @@
//! combination of a path to the compiled artifact and the
//! [`params`][`polkadot_parachain_primitives::primitives::ValidationParams`].

#![warn(missing_docs)]

mod artifacts;
mod error;
mod execute;
Expand Down

0 comments on commit 4290783

Please sign in to comment.