-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
85 lines (68 loc) · 2.35 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
all: fmt lintall testall
export CARGO_NET_GIT_FETCH_WITH_CLI = true
lint:
cargo clippy --workspace
cargo check --workspace --tests
cargo check --workspace --benches
lintall: lint
cargo clippy --workspace --no-default-features --features "rocks_backend,compress,msgpack_codec"
cargo check --workspace --tests --no-default-features --features "rocks_backend,json_codec"
lintmusl:
cargo clippy --workspace --target x86_64-unknown-linux-musl \
--no-default-features \
--features "parity_backend,msgpack_codec"
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
testall: test
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo test --workspace --tests \
--no-default-features \
--features "rocks_backend,msgpack_codec" \
-- --test-threads=1 #--nocapture
testmusl:
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo test --workspace --target x86_64-unknown-linux-musl --release --tests \
--no-default-features \
--features "parity_backend,msgpack_codec" \
-- --test-threads=1 #--nocapture
bench:
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench --workspace --no-default-features --features "rocks_backend,msgpack_codec"
du -sh ~/.vsdb
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench --workspace
du -sh ~/.vsdb
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench --workspace --no-default-features --features "rocks_backend,compress,msgpack_codec"
du -sh ~/.vsdb
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench --workspace --features "compress"
du -sh ~/.vsdb
benchmusl:
- rm -rf ~/.vsdb /tmp/.vsdb /tmp/vsdb_testing $(VSDB_BASE_DIR)
cargo bench --workspace --target x86_64-unknown-linux-musl \
--no-default-features --features "parity_backend,msgpack_codec"
du -sh ~/.vsdb
fmt:
cargo +nightly fmt
fmtall:
bash scripts/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
publish_all: publish
cargo publish -p vsdb_hash_db
cargo publish -p vsdb_trie_db
cargo publish -p vsdb_slot_db