An open API service indexing awesome lists of open source software.

https://github.com/kalwalt/cpp2rust

A simple example to compile Rust + cpp to WASM
https://github.com/kalwalt/cpp2rust

cpp emscripten rust wasm webassembly

Last synced: 3 months ago
JSON representation

A simple example to compile Rust + cpp to WASM

Awesome Lists containing this project

README

          

# Cpp2Rust

A simple example how compile C++ code inside Rust to WASM with emscripten toolchain.
Based on this example: [Calling C++ functions from your Rust code](https://ghoulkingr.hashnode.dev/calling-c-functions-from-your-rust-code)
## Build
Run the Build.sh script or run the commands in a terminal.
## Example app
In the build folder run http server open the browser console you should see this message: `Value: true`