Skip to content

Conversation

@bkchr
Copy link
Member

@bkchr bkchr commented Nov 27, 2025

When running two different cargo commands, they may both compile the same wasm files. When the second cargo command produces the same wasm files, we are now not gonna overwrite it. This has the advantage that we can run the first command again without it trying to recompile the project. Right now it would lead to the wasm files always getting recreated, which is wasting a lot of time :)

When running two different `cargo` commands, they may both compile the same wasm files. When the
second `cargo` command produces the same wasm files, we are now not gonna overwrite it. This has the advantage
that we can run the first command again without it trying to recompile the project.
Right now it would lead to the wasm files always getting recreated, which is wasting a lot of time :)
@bkchr bkchr requested a review from koute as a code owner November 27, 2025 21:14
@bkchr bkchr added the T17-primitives Changes to primitives that are not covered by any other label. label Nov 27, 2025
@bkchr
Copy link
Member Author

bkchr commented Nov 27, 2025

/cmd prdoc --audience runtime_dev --bump patch

Copy link
Contributor

@skunert skunert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except the one bug

let final_blob = if compressed_path.exists() {
Some(WasmBinary(compressed_path))
} else if compact_path.exists() {
Some(WasmBinary(compressed_path))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Some(WasmBinary(compressed_path))
Some(WasmBinary(compact_path))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T17-primitives Changes to primitives that are not covered by any other label.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants