@@ -18,8 +18,9 @@ ensure-tools:
1818 cargo install wasm-tools --locked --version 1.235.0
1919 cargo install cargo-component --locked --version 0.21.1
2020 cargo install wit-bindgen-cli --locked --version 0.43.0
21+ cargo install --git https:// github.com/ hyperlight-dev/ cargo-hyperlight cargo-hyperlight
2122
22- build-all target = default-target features = " ": (build target features) (build-wasm- examples target features) ( build-rust-wasm-examples target features) ( build-rust-component-examples target ) (build-wasm-runtime target features)
23+ build-all target = default-target features = " ": (build target features) (build-examples target features) (build-wasm-runtime target features)
2324
2425build target = default-target features = " ": (fmt-check )
2526 cargo build {{ if features == " " {' ' } else if features== " no-default-features" {" --no-default-features" } else {" --no-default-features -F " + features } }} --verbose --profile={{ if target == " debug" {" dev" } else { target } }}
@@ -33,9 +34,11 @@ compile-wit:
3334 wasm-tools component wit ./ src/ component_sample/ wit/ example.wit -w -o ./ src/ component_sample/ wit/ component-world.wasm
3435
3536build-wasm-runtime target = default-target features = " ":
36- cd ./ src/ wasm_runtime && cargo build --verbose {{ if features == " " {' ' } else if features== " no-default-features" {" --no-default-features" } else {" --features " + features } }} --profile={{ if target == " debug" {" dev" } else { target } }} && rm -R target
37+ cd ./ src/ wasm_runtime && cargo hyperlight build --verbose {{ if features == " " {' ' } else if features== " no-default-features" {" --no-default-features" } else {" --features " + features } }} --profile={{ if target == " debug" {" dev" } else { target } }} && rm -R target
3738
38- build-wasm-examples target = default-target features = " ": (compile-wit )
39+ build-examples target = default-target features = " ": (build-wasm-examples target features) (build-rust-wasm-examples target features) (build-rust-component-examples target features)
40+
41+ build-wasm-examples target = default-target features = " ": (compile-wit )
3942 {{ build-wasm-examples-command }} {{ target}} {{ features}}
4043
4144build-rust-wasm-examples target = default-target features = " ": (mkdir-redist target)
@@ -54,7 +57,7 @@ check target=default-target:
5457 cargo check --profile={{ if target == " debug" {" dev" } else { target } }}
5558 cd src/ rust_wasm_samples && cargo check --profile={{ if target == " debug" {" dev" } else { target } }}
5659 cd src/ component_sample && cargo check --profile={{ if target == " debug" {" dev" } else { target } }}
57- cd src/ wasm_runtime && cargo check --profile={{ if target == " debug" {" dev" } else { target } }}
60+ cd src/ wasm_runtime && cargo hyperlight check --profile={{ if target == " debug" {" dev" } else { target } }}
5861 cd src/ hyperlight_wasm_macro && cargo check --profile={{ if target == " debug" {" dev" } else { target } }}
5962
6063fmt-check :
@@ -79,7 +82,7 @@ clippy target=default-target: (check target)
7982 cargo clippy --profile={{ if target == " debug" {" dev" } else { target } }} --all-targets --all-features -- -D warnings
8083 cd src/ rust_wasm_samples && cargo clippy --profile={{ if target == " debug" {" dev" } else { target } }} --all-targets --all-features -- -D warnings
8184 cd src/ component_sample && cargo clippy --profile={{ if target == " debug" {" dev" } else { target } }} --all-targets --all-features -- -D warnings
82- cd src/ wasm_runtime && cargo clippy --profile={{ if target == " debug" {" dev" } else { target } }} --all-targets --all-features -- -D warnings
85+ cd src/ wasm_runtime && cargo hyperlight clippy --profile={{ if target == " debug" {" dev" } else { target } }} --all-targets --all-features -- -D warnings
8386 cd src/ hyperlight_wasm_macro && cargo clippy --profile={{ if target == " debug" {" dev" } else { target } }} --all-targets --all-features -- -D warnings
8487
8588# TESTING
0 commit comments