Skip to content

Commit cc8785e

Browse files
committed
humanode-runtime-wasm-builder crate as WASM build selector
1 parent b7500ea commit cc8785e

File tree

5 files changed

+19
-8
lines changed

5 files changed

+19
-8
lines changed

.github/actions/plan/modes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const build = {
7575
name: "build runtime with EVM tracing",
7676
cargoCommand: "build",
7777
cargoArgs:
78-
"--locked --release --bin humanode-runtime-build-selector --features evm-tracing",
78+
"--locked --release --bin humanode-runtime-wasm-builder --features evm-tracing",
7979
cargoCacheKey: "release-build-runtime-evm-tracing",
8080
platformIndependent: true,
8181
artifactSelector: "runtime",

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "humanode-runtime-wasm-builder"
3+
version = "0.1.0"
4+
edition = "2021"
5+
publish = false
6+
7+
[dependencies]
8+
humanode-runtime = { path = "../humanode-runtime" }
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//! A stub binary target used to selectively build the WASM runtime via `build.rs`,
1+
//! Stub binary target used to selectively build the WASM runtime via `build.rs`,
22
//! while ensuring consistent and correct feature resolution across the workspace.
33
//!
44
//! If you need to build only the `humanode-runtime` WASM, it will likely be incorrect to run
55
//! `cargo build --package humanode-runtime --lib`. While seemingly precise, `--package` would build
66
//! the WASM with the minimally acceptable — and likely untested — set of features. In contrast,
7-
//! using `cargo build --bin humanode-runtime-build-selector` results in Cargo resolving features
7+
//! using `cargo build --bin humanode-runtime-wasm-builder` results in Cargo resolving features
88
//! at the workspace level. The runtime is compiled with the same feature set that has already been
99
//! tested through regular `--workspace` Cargo runs.
1010
11-
/// A stub binary entrypoint.
11+
/// Stub binary entrypoint.
1212
pub fn main() {}

crates/humanode-runtime/Cargo.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ version = "0.1.0"
44
edition = "2021"
55
publish = false
66

7-
[[bin]]
8-
name = "humanode-runtime-build-selector"
9-
path = "src/bin/build_selector.rs"
10-
117
[build-dependencies]
128
substrate-wasm-builder = { workspace = true, optional = true }
139

0 commit comments

Comments
 (0)