Expand description
Justfile to assist a Rust project
§Install
$ git clone https://github.com/YoungHaKim7/justrs
$ cd justrs
$ cargo install --path .cargo install
cargo install justrs§Usage
Run the binary in your Rust project directory to generate a justfile:
$ justrs
justfile created successfully at: /path/to/your/project/justfile§just list
$ just -l
Available recipes:
a SEARCH # just search "just a <search_str>"(cargo install ripgrep)
asm METHOD # cargo asm
c # cargo check(Test Before Deployment)
clean # clean file
doc # cargo doc (documentation preview)
eos # optimized assembly
es # emit asm file
ex # macro show(cargo expand)
fi # final review
gi # .gitignore setting
hir # emit hir file
llvm # emit llvm-ir file
mir # emit mir file
n # nightly setting(faster compilation)
r # cargo run
rr # (optimization)cargo run --release
rupdate # rust-analyzer is available in rustup:
rustupdate # rust-lang(rustc) update stable
t # cargo test
tex # cargo expand(test --lib)
tn # nightly(cargo nextest run)
tnp # nightly(cargo nextest run --nocapture)
toolremove TOOLCHAINS # "rustup show" & remove toolchains
tp # cargo test -- --nocapture
w # cargo watch(check & test & run)
ws # cargo watch(simple only run)
xv STR # hex view(cat "SEARCH" | rg -i --line-number --color=always "SEARCH"("rg -i <search>"))
xx # hex view("rg -i <search>" | "grep -rni <search>")§Modifying the justfile template
To customize the generated justfile, edit justfile_template.just in the source directory
and rebuild the project.