add example crates

This commit is contained in:
2024-09-29 18:23:50 +02:00
parent da63980914
commit f116e435ec
15 changed files with 782 additions and 3 deletions

View File

@@ -3,11 +3,10 @@
[Introduction](./introduction.md)
- [Setup](./setup.md)
- [Tutorial](tutorial/introduction.md)
- [Creating a project](tutorial/creating-a-project.md)
- [Adding wasm logic](tutorial/adding-wasm-logic.md)
- [Compiling](tutorial/compiling.md)
- [Calling from Javascript](tutorial/calling-from-javascript.md)
- [Testing](./testing.md)
- [Examples](./examples.md)

5
src/examples.md Normal file
View File

@@ -0,0 +1,5 @@
There are two example crates, a binary and a library one:
- [Example Binary Crate](https://github.com/bytedream/litbwraw/tree/main/example-binary)
- [Example Library Crate](https://github.com/bytedream/litbwraw/tree/main/example-library)
Each directory has a `nodejs.js` file that can be executed with nodejs and runs the compiled code.