vsdb 0.13.10

Versioned Stateful DataBase, mainly used in blockchain scene.
Documentation
all: lint

export CARGO_NET_GIT_FETCH_WITH_CLI = true

build:
	cargo build

release:
	cargo build --release

lint:
	cargo clippy
	cargo check --tests
	cargo check --benches
	cargo check --examples
	cargo clippy --no-default-features --features "rocks_engine,cbor_codec"
	cargo check --tests --no-default-features --features "rocks_engine,cbor_codec"
	cargo check --benches --no-default-features --features "rocks_engine,cbor_codec"
	cargo check --examples --no-default-features --features "rocks_engine,cbor_codec"

test:
	- rm -rf ~/.vsdb
	cargo test -- --test-threads=1
	- rm -rf ~/.vsdb
	cargo test --no-default-features --features "rocks_engine,cbor_codec" -- --test-threads=1

bench:
	- rm -rf ~/.vsdb
	cargo bench
	du -sh ~/.vsdb
	- rm -rf ~/.vsdb
	cargo bench --no-default-features --features "rocks_engine,cbor_codec"
	du -sh ~/.vsdb

fmt:
	bash tools/fmt.sh

update:
	cargo update

clean:
	cargo clean
	git stash
	git clean -fdx

doc:
	cargo doc --open