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
- Host: GitHub
- URL: https://github.com/kalwalt/cpp2rust
- Owner: kalwalt
- License: mit
- Created: 2024-03-18T15:09:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T17:41:13.000Z (over 2 years ago)
- Last Synced: 2025-12-26T11:43:52.741Z (7 months ago)
- Topics: cpp, emscripten, rust, wasm, webassembly
- Language: JavaScript
- Homepage:
- Size: 2.21 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
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`