mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 02:17:58 +00:00
1a01bca647
* Fixes bug in wasm-builder with cargo publish There was a bug in wasm-builder which resulted in generating a `Cargo.lock` in the project directory because of running `cargo metadata`. This resulted in commands like `cargo publish` to fail (if there was no `Cargo.lock` before building), because it checks that the project directory isn't modified. * Update utils/wasm-builder/src/wasm_project.rs Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com> Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com>
11 lines
193 B
Rust
11 lines
193 B
Rust
use wasm_builder_runner::WasmBuilder;
|
|
|
|
fn main() {
|
|
WasmBuilder::new()
|
|
.with_current_project()
|
|
.with_wasm_builder_from_crates("2.0.1")
|
|
.export_heap_base()
|
|
.import_memory()
|
|
.build()
|
|
}
|