-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjustfile
More file actions
25 lines (19 loc) · 939 Bytes
/
justfile
File metadata and controls
25 lines (19 loc) · 939 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export CARGO_TARGET_DIR := justfile_dir() / "target"
install:
cargo install cargo-hyperlight --path .
fmt:
cargo +nightly fmt --all -- --check
cargo +nightly fmt --all --manifest-path ./examples/host/Cargo.toml -- --check
cargo +nightly fmt --all --manifest-path ./examples/guest/Cargo.toml -- --check
fmt-apply:
cargo +nightly fmt --all
cargo +nightly fmt --all --manifest-path ./examples/host/Cargo.toml
cargo +nightly fmt --all --manifest-path ./examples/guest/Cargo.toml
clippy:
cargo clippy --all -- -D warnings
cargo clippy --all --manifest-path ./examples/host/Cargo.toml -- -D warnings
cargo hyperlight clippy --all --manifest-path ./examples/guest/Cargo.toml -- -D warnings
build-guest:
cargo hyperlight build --manifest-path ./examples/guest/Cargo.toml
run-guest: build-guest
cargo run --manifest-path ./examples/host/Cargo.toml -- ./target/x86_64-hyperlight-none/debug/guest