-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
52 lines (43 loc) · 1.53 KB
/
Makefile
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
all:
cargo run
index: reset
cargo run --example indexer
run-prod:
cargo run --release
test:
cargo test --lib
bench:
ab -n 100 -c 10 "127.0.0.1:3000/search/?q=await"
curl:
curl "127.0.0.1:3000/search/?q=async&page=0" | jq .
ci:
cargo fmt --all
cargo check
cargo clippy --profile test --all-features -- -D warnings
get-mdbooks:
mkdir -p mdbooks
cd mdbooks; git clone [email protected]:google/comprehensive-rust.git || true
cd mdbooks; git clone [email protected]:rust-lang/book.git || true
cd mdbooks; git clone [email protected]:rust-lang/nomicon.git || true
cd mdbooks; git clone [email protected]:tokio-rs/website.git || true
cd mdbooks; git clone [email protected]:rust-lang/rust-by-example.git || true
cd mdbooks; git clone [email protected]:rust-lang-nursery/rust-cookbook.git || true
cd mdbooks; git clone https://github.com/panpilkarz/rust-vs-python || true
cd mdbooks; git clone https://git.sr.ht/~ntietz/yet-another-rust-resource || true
cd mdbooks; git clone [email protected]:rust-unofficial/patterns.git || true
cd mdbooks; git clone [email protected]:Veykril/tlborm.git || true
update-mdbooks:
git -C mdbooks/comprehensive-rust pull
git -C mdbooks/book pull
git -C mdbooks/nomicon pull
git -C mdbooks/rust-by-example pull
git -C mdbooks/rust-cookbook pull
git -C mdbooks/rust-vs-python pull
git -C mdbooks/yet-another-rust-resource pull
git -C mdbooks/website pull
rm -rf mdbooks/website/content/tokio/tutorial/index.md
git -C mdbooks/patterns pull
git -C mdbooks/tlborm pull
reset:
rm -rf indexes/*
mkdir -p indexes/page indexes/code