GitRoot

craft your forge, build your project, grow your community freely
 1# SPDX-FileCopyrightText: 2025 Romain Maneschi <romain@gitroot.dev>
 2#
 3# SPDX-License-Identifier: EUPL-1.2
 4
 5NAME=hop
 6VERSION=0.0.1
 7
 8all: clean test build
 9
10target:
11	rustup +nightly target add wasm32-wasip1
12
13${NAME}-${VERSION}.wasm: target
14	cargo +nightly build --target=wasm32-wasip1 --release
15	cp target/wasm32-wasip1/release/hop.wasm ./${NAME}-${VERSION}.wasm
16
17build: ${NAME}-${VERSION}.wasm
18
19test:
20	cargo test
21
22clean:
23	rm -rf ${NAME}-${VERSION}.wasm
24	cargo clean