mirror of
https://github.com/anoma/juvix.git
synced 2024-09-11 16:26:33 +03:00
* Adds a RISC0 backend which generates Rust code that can be compiled with the official RISC0 toolchain. * The RISC0 backend is a wrapper around the Rust backend. * Adds the `risc0-rust` to the `compile` CLI command, which creates a directory containing host and guest Rust sources for the RISC0 zkVM. The generated code can be compiled/run using `cargo` from inside the created directory (requires having RISC0 installed: https://dev.risczero.com/api/zkvm/install).
23 lines
306 B
Makefile
23 lines
306 B
Makefile
|
|
export
|
|
|
|
.PHONY: all
|
|
all: juvix_c juvix_rust
|
|
|
|
.PHONY: juvix_c
|
|
juvix_c:
|
|
cd c && $(MAKE) -j 4 -s
|
|
|
|
.PHONY: juvix_rust
|
|
juvix_rust:
|
|
cd rust/juvix && cargo build && cargo build --release
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
cd c && $(MAKE) clean
|
|
cd rust/juvix && cargo clean
|
|
|
|
.PHONY: format
|
|
format:
|
|
cd c && $(MAKE) format
|