diff --git a/README.md b/README.md index 986b82c..608bfcc 100644 --- a/README.md +++ b/README.md @@ -301,6 +301,9 @@ Download the VS Code extension from the [latest build](https://github.com/kyleec - `$ just run-playground` Build and run playground - `$ just build-docker` Build docker image - `$ just run-repl-docker` Run `locks repl` inside built docker image +- `$ just install` Create a release build of locks and move it to `~/.cargo/bin` +- `$ just install-debug` Create a debug build of locks and move it to `~/.cargo/bin` +- `$ just install-trace` Create a debug build of locks with `gc-trace` & `vm-trace` features enabled then move it to `~/.cargo/bin` ## Forked diff --git a/justfile b/justfile index e7d5aa4..2d90b58 100644 --- a/justfile +++ b/justfile @@ -1,18 +1,40 @@ default: @just --list -install: build - mv target/release/locks.exe ~/.cargo/bin +[unix] +move-release: + mv target/debug/locks ~/.cargo/bin -install-debug: build-debug +[windows] +move-release: mv target/debug/locks.exe ~/.cargo/bin +install: build && move-release + echo 'Installed Locks (Release)' + +[unix] +move-debug: + mv target/debug/locks ~/.cargo/bin + +[windows] +move-debug: + mv target/debug/locks.exe ~/.cargo/bin + +install-debug: build-debug && move-debug + echo 'Installed Locks (Debug)' + +install-trace: build-trace && move-debug + echo 'Installed Locks (Trace)' + build: cargo build --release build-debug: cargo build +build-trace: + cargo build --features=gc-trace,vm-trace + build-docker: docker build -t kyleect/locks:1.0.0 .