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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! [Justfile](https://github.com/casey/just) to assist a Rust project
//!
//! # Install
//!
//! ```bash
//! $ git clone https://github.com/YoungHaKim7/justrs
//!
//! $ cd justrs
//!
//! $ cargo install --path .
//! ```
//!
//! - `cargo install`
//!
//! ```bash
//! cargo install justrs
//! ```
//!
//! # Usage
//!
//! Run the binary in your Rust project directory to generate a justfile:
//!
//! ```bash
//! $ justrs
//! justfile created successfully at: /path/to/your/project/justfile
//! ```
//!
//! # just list
//!
//! ```bash
//! $ 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.