summaryrefslogtreecommitdiffhomepage
path: root/src/rust/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/rust/Makefile')
-rw-r--r--src/rust/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rust/Makefile b/src/rust/Makefile
new file mode 100644
index 0000000..d2e705a
--- /dev/null
+++ b/src/rust/Makefile
@@ -0,0 +1,11 @@
+include ../../shared.mk
+
+SDIR = src/rust
+
+rustlib:
+ $(PP_GEN) $(SDIR)/target/wasm32-wasi
+ $(v)cargo build --target=wasm32-wasi
+
+clean:
+ rm -f Cargo.lock unit-wasm-sys/Cargo.lock
+ rm -rf target/ unit-wasm-sys/target/