2022-04-09 12:38:45 +00:00
|
|
|
.PHONY: default
|
|
|
|
default:
|
|
|
|
@echo "Choose a Makefile target:"
|
|
|
|
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print " - " $$1}}' | sort
|
|
|
|
|
2022-07-18 23:14:46 +00:00
|
|
|
.PHONY: setup
|
|
|
|
setup:
|
|
|
|
cargo upgrade --workspace --pinned --to-lockfile
|
|
|
|
|
2022-05-03 23:39:58 +00:00
|
|
|
.PHONY: docs
|
|
|
|
docs:
|
|
|
|
cargo doc --open --no-deps --package surrealdb
|
|
|
|
|
2022-04-09 12:38:45 +00:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
cargo test --workspace
|
|
|
|
|
2022-05-03 23:40:18 +00:00
|
|
|
.PHONY: check
|
|
|
|
check:
|
|
|
|
cargo check --workspace
|
|
|
|
cargo fmt --all -- --check
|
|
|
|
cargo clippy -- -W warnings
|
|
|
|
|
2022-04-09 12:38:45 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
2022-05-09 22:58:56 +00:00
|
|
|
cargo clean
|
2022-04-09 12:38:45 +00:00
|
|
|
|
|
|
|
.PHONY: serve
|
|
|
|
serve:
|
2022-07-18 18:04:11 +00:00
|
|
|
cargo run -- -vvv start --user root --pass root memory
|
2022-04-09 12:38:45 +00:00
|
|
|
|
|
|
|
.PHONY: quick
|
|
|
|
quick:
|
|
|
|
cargo build
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build:
|
|
|
|
cargo build --release
|