Files
runrs/justfile
2025-01-11 00:56:45 +08:00

54 lines
1.2 KiB
Makefile

_:
@just --list
install:
cargo install --path .
run-rust *args:
cargo run -- {{args}}
run-go *args:
cargo run --no-default-features --features switch-go-lang -- {{args}}
run-js *args:
cargo run --no-default-features --features switch-js-lang -- {{args}}
run-dart *args:
cargo run --no-default-features --features switch-dart-lang -- {{args}}
build-run-rust:
cargo build --release
build-run-go:
cargo build --release --no-default-features --features switch-go-lang
build-run-js:
cargo build --release --no-default-features --features switch-js-lang
build-run-dart:
cargo build --release --no-default-features --features switch-dart-lang
install-run-go:
cargo build --release --no-default-features --features switch-go-lang
cp target/release/runrs ~/bin/rungo
install-run-js:
cargo build --release --no-default-features --features switch-js-lang
cp target/release/runrs ~/bin/runjss
install-run-dart:
cargo build --release --no-default-features --features switch-dart-lang
cp target/release/runrs ~/bin/rundart
build-all:
@just build-run-rust
@just build-run-go
@just build-run-js
@just build-run-dart
install-all:
@just install
@just install-run-go
@just install-run-js
@just install-run-dart