-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (40 loc) · 1.21 KB
/
Makefile
File metadata and controls
53 lines (40 loc) · 1.21 KB
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
all: fmt lint test
export CARGO_NET_GIT_FETCH_WITH_CLI = true
# ---- Main targets (default: MMDB backend) ----
lint:
cargo clippy --workspace
cargo check --workspace --tests
cargo check --workspace --benches
test:
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo test --workspace --release --tests -- --test-threads=1
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo test --workspace --tests -- --test-threads=1
bench:
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench -p vsdb_core --bench basic
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench -p vsdb --bench basic
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench -p vsdb --bench versioned
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench -p vsdb --bench slotdex
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench -p vsdb --bench trie_bench
# ---- Utilities ----
fmt:
cargo fmt
fmtall:
bash tools/fmt.sh
update:
cargo update --verbose
clean:
cargo clean
clean_all: clean
git stash
git clean -fdx
doc:
cargo doc --open
publish:
- cargo publish -p vsdb_core
- cargo publish -p vsdb