rust-diplomat / diplomat

Experimental Rust tool for generating FFI definitions allowing many other languages to call Rust code
https://rust-diplomat.github.io/book/
Other
480 stars 45 forks source link

JS2 Backend: Helper functions in diplomatRuntime to minimize the amount of direct reference to wasm. #522

Open ambiguousname opened 1 week ago

ambiguousname commented 1 week ago

For instance, functions that return a DiplomatWrite buffer should do this.

sffc commented 1 week ago

Both for strings and boxed slices: https://github.com/rust-diplomat/diplomat/pull/487#discussion_r1651473253

sffc commented 1 week ago

Note: Partially done with sliceFromPtr