-
Notifications
You must be signed in to change notification settings - Fork 14
/
justfile
60 lines (43 loc) · 1.2 KB
/
justfile
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
list:
just --list
build:
cargo build
install: install-typeshare install-postgres install-diesel
install-rust:
@echo Install rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
install-typeshare:
@echo Install typeshare-cli
cargo install typeshare-cli --version 1.12.0 --force
install-postgres:
brew install libpq postgresql@15
brew link postgresql@15
export LDFLAGS="-L/opt/homebrew/opt/libpq/lib"
export CPPFLAGS="-I/opt/homebrew/opt/libpq/include"
install-diesel:
@echo Install Diesel
cargo install diesel_cli --no-default-features --features postgres --version 2.2.4 --force
test-workspace:
cargo test --workspace --quiet
test-all:
cargo test --all --verbose
test CRATE:
cargo test --package {{CRATE}} --workspace
format:
cargo fmt -q --all
lint:
@cargo clippy --version
cargo clippy -- -D warnings
unused:
cargo install cargo-machete
cargo machete
bloat:
cargo install cargo-bloat --no-default-features
cargo bloat --release --crates
migrate:
diesel migration run
localize:
@sh scripts/localize.sh core crates/localizer/i18n
setup-services:
docker-compose up -d redis postgres clickhouse
mod gemstone