-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 996 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 996 Bytes
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
.PHONY: build test clippy clippy-fix format format-check version-bump npm-publish
build:
cargo build --target-dir target/
test:
$(info ****************** running tests ******************)
rm -rf .rag-rs-cache/ && cargo test
clippy:
$(info ****************** running clippy in check mode ******************)
cargo clippy
clippy-fix:
$(info ****************** running clippy in fix mode ******************)
cargo clippy --fix --bin "rag-rs"
format:
$(info ****************** running rustfmt in fix mode ******************)
cargo fmt
format-check:
$(info ****************** running rustfmt in check mode ******************)
cargo fmt --check
version-bump:
$(info ****************** bumping version in package.json and Cargo.toml ******************)
python3 scripts/version_bump.py
npm-publish:
$(info ****************** login and publish to npm ******************)
$(info ****************** meant for manual usage ******************)
bash scripts/login_and_publish_to_npm.sh