mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
docs: rule recompile instruction
This commit is contained in:
parent
19737de708
commit
d61881306a
1 changed files with 9 additions and 10 deletions
19
README.md
19
README.md
|
|
@ -54,24 +54,23 @@ cargo install pay-respects
|
|||
git clone --depth 1 https://github.com/iffse/pay-respects
|
||||
cd pay-respects
|
||||
cargo install --path .
|
||||
|
||||
# compile without installing
|
||||
# binary can be found at ./target/release/pay-respects
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
Alternatively, you can download Linux binary from [releases](https://github.com/iffse/pay-respects/releases).
|
||||
|
||||
## Compiling
|
||||
|
||||
Using cargo, the process is straight forward:
|
||||
```shell
|
||||
git clone --depth 1 https://github.com/iffse/pay-respects
|
||||
cd pay-respects
|
||||
cargo build --release
|
||||
```
|
||||
|
||||
|
||||
## Rule Files
|
||||
|
||||
Rule files are parsed at compilation. Everything in rule files is converted to Rust code before compiling. You don't have to know the project structure nor Rust to write the rules!
|
||||
|
||||
If only rules are changed, cargo won't recompile the project because Rust code were intact. You will have to notify it manually by:
|
||||
```shell
|
||||
touch src/suggestions.rs && cargo build
|
||||
```
|
||||
|
||||
Syntax of a rule file (will be read by simply placing the file under [rules](./rules)):
|
||||
```toml
|
||||
# this field should be the name of the command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue