yoshuawuyts / playground-jco

jco demo

Home Page:https://bytecodealliance.org/articles/jco-1.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

playground-jco

This is an example project using jco + cargo-component. This was authored in February 2024. Please refer to the post on the bytecode alliance blog for documentation of this project.

Building this project

# install the global dependencies
npm install -g jco
cargo install cargo-component

# install and compile the Rust code
cargo component build

# install and build the JS code
npm install
jco transpile target/wasm32-wasi/debug/playground_jco.wasm -o target/jco

# run the JS code
node index.js

License

MIT

About

jco demo

https://bytecodealliance.org/articles/jco-1.0

License:MIT License


Languages

Language:Rust 96.5%Language:JavaScript 3.5%