Yan

Results 10 issues of Yan

### Describe the Bug Adding a new data segment produces bad Wasm binary. ### Steps to Reproduce ``` let mut m = Module::with_config(ModuleConfig::new()); m.data.add(DataKind::Passive, vec![1,2,3,4]); m.emit_wasm_file("out.wasm").unwrap(); ``` Running `wasm2wat out.wasm...

bug

### Summary We can use `visit_instr_mut` to easily replace one instruction with another instruction. But how to replace the instruction with a block? It seems there is no direct way...

question

https://forum.dfinity.org/t/feature-request-support-deprecation-of-service-functions-in-candid

enhancement

I'm trying to build a minimal webpack bundle with npm-in-browser, by adding the following code to the example: ``` const packages = ` { "name": "app", "version": "0.1.0", "description": "",...

Doc update for https://github.com/bytecodealliance/wasm-tools/pull/2355 and https://github.com/WebAssembly/component-model/issues/345

Just a draft. We may want to store the trace in some store, instead of disk.

Consider the following WIT file: ``` package test:component; interface i { resource r; enum kind { a, b, c } f: func(k: kind) -> r; } // wrapped-i is exactly...

gen-rust

* Add handle value to Wave syntax: `#42`, `#[42]` * Make `ValueTyped` trait public * Add `ToValue` and `ToRust` trait to allow conversion between Wave value and Rust values *...

Currently `wasm-tools component new` uses a special adapter to convert WASI p1 to p2. The adapter only works if it can take a dedicated space from the main module's memory,...