Makefile 1.04 KB
Newer Older
1
debug: src/db_conn_postgres.rs
2
	RUST_BACKTRACE=1 cargo run --features 'watch debug' -- -a
3

4
test: src/db_conn_postgres.rs
5
	RUST_BACKTRACE=1 cargo test --features 'complete debug'
6

7
release: src/db_conn_postgres.rs
8
	env OPENSSL_LIB_DIR=/usr/lib/x86_64-linux-gnu/ OPENSSL_INCLUDE_DIR=/usr/local/include OPENSSL_STATIC=yes cargo build --release --features 'server'
9

10
stricttest: src/db_conn_postgres.rs
11
12
	cargo test --features 'strict complete debug' --verbose

13
dynrelease: src/db_conn_postgres.rs
14
15
	cargo build --release --features 'server'

16
format: src/db_conn_postgres.rs
17
	cargo +nightly fmt
18

19
clippy: src/db_conn_postgres.rs
20
	cargo clippy --all-targets --features 'complete debug' -- -D warnings -A clippy::redundant_field_names -A clippy::useless_format -A clippy::let_and_return -A clippy::type_complexity -A clippy::option_map_unit_fn -A clippy::identity_conversion -A clippy::expect_fun_call
21

22
23
src/db_conn_postgres.rs: src/db_conn_warning_header.txt src/db_conn_sqlite_new.header.rs src/db_conn_postgres.header.rs src/db_conn.base.rs
	cd src; ./generate_connectors.sh
24