You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/wasm-demo-cairo1/README.md
+12-4
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Demo of `cairo-vm` on WebAssembly
2
2
3
3
While cairo-vm is compatible with WebAssembly, it doesn't implement any bindings to it.
4
-
Instead, create a new WebAssembly crate with cairo-vm as a dependency and implement the required functionality there.
4
+
Instead, create a new WebAssembly crate with cairo-vm and cairo1-run as dependencies and implement the required functionality there.
5
5
6
6
Since mimalloc is not automatically compilable to WebAssembly, the cairo-vm dependency should disable the default features, which will in turn disable mimalloc.
7
7
@@ -11,7 +11,7 @@ A working example is provided in this repository.
11
11
12
12
To compile and run the example you need:
13
13
14
-
-a Cairo 0 compiler
14
+
-an either Cairo 1 or Cairo 2 compiler
15
15
- the _wasm-pack_ crate
16
16
- some HTTP server (for example: the `live-server` npm module)
17
17
@@ -20,12 +20,20 @@ To compile and run the example you need:
20
20
21
21
## Building
22
22
23
-
To build the example, first compile your Cairo 1.x program:
23
+
To build the example, first compile your Cairo 1 / 2 program:
0 commit comments