Skip to content

Commit 8e8dc61

Browse files
authored
polkadot-node-core-pvf-common: Fix test compilation error (#5310)
This crate only uses `tempfile` on linux but includes it unconditionally in its `Cargo.toml`. It also sets `#![deny(unused_crate_dependencies)]`. This leads to an hard error to anything that is not Linux. This PR fixes this error. I am wondering why CI didn't catch that. Shouldn't the test at least be compiled (but not run) on macOS?
1 parent aca25a0 commit 8e8dc61

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

polkadot/node/core/pvf/common/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ seccompiler = "0.4.0"
4242

4343
[dev-dependencies]
4444
assert_matches = { workspace = true }
45+
46+
[target.'cfg(target_os = "linux")'.dev-dependencies]
4547
tempfile = { workspace = true }
4648

4749
[features]

0 commit comments

Comments
 (0)