forked from jb55/nostril
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cargo.mk
executable file
·70 lines (68 loc) · 2.77 KB
/
cargo.mk
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
##
##===============================================================================
##make cargo-*
cargo-help:### cargo-help
@awk 'BEGIN {FS = ":.*?###"} /^[a-zA-Z_-]+:.*?###/ {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
cargo-release-all:### cargo-release-all
## cargo-release-all recursively cargo build --release
for t in */Cargo.toml; do echo $$t; cargo b -r -vv --manifest-path $$t; done
for t in ffi/*/Cargo.toml; do echo $$t; cargo b -r -vv --manifest-path $$t; done
cargo-clean-all:### cargo-clean-all - clean release artifacts
## cargo-clean-all recursively cargo clean --release
for t in */Cargo.toml; do echo $$t; cargo clean --release -vv --manifest-path $$t; done
cargo-publish-all:### cargo-publish-all
## cargo-clean-all recursively publish rust projects
for t in */Cargo.toml; do echo $$t; cargo publish -vv --manifest-path $$t; done
cargo-sweep:### cargo-sweep sweep -t 1 -r
## cargo-sweep sweep -t 1 -r
type -P cargo-sweep && cargo-sweep sweep -t 1 -r
cargo-install-bins:### cargo-install-bins
## cargo-install-all recursively cargo install -vv $(SUBMODULES)
## *** cargo install -vv --force is NOT used.
## *** cargo install -vv --force --path <path>
## *** to overwrite deploy cargo.io crates.
export RUSTFLAGS=-Awarning; for t in $(SUBMODULES); do echo $$t; cargo install --bins --path $$t -vv 2>/dev/null || echo ""; done
#for t in $(SUBMODULES); do echo $$t; cargo install -vv gnostr-$$t --force || echo ""; done
cargo-b:cargo-build### cargo b
cargo-build:### cargo build
## cargo-build q=true
@. $(HOME)/.cargo/env || true
@RUST_BACKTRACE=all cargo b $(QUIET)
cargo-i:cargo-install
cargo-install:### cargo install --path .
@. $(HOME)/.cargo/env || true
@cargo install --path . $(FORCE)
cargo-br:cargo-build-release### cargo-br
## cargo-br q=true
cargo-build-release:### cargo-build-release
## cargo-build-release q=true
@. $(HOME)/.cargo/env || true
@cargo b --release $(QUIET)
cargo-c:cargo-check
cargo-check:### cargo-check
@. $(HOME)/.cargo/env || true
@cargo c
cargo-bench:### cargo-bench
@. $(HOME)/.cargo/env || true
@cargo bench
cargo-t:cargo-test
cargo-test:### cargo-test
@. $(HOME)/.cargo/env || true
@cargo test .
cargo-tr:cargo-test-release
cargo-test-release:### cargo-test-release
@. $(HOME)/.cargo/env || true
@cargo test --release .
cargo-report:### cargo-report
@. $(HOME)/.cargo/env || true
cargo report future-incompatibilities --id 1
##===============================================================================
cargo-dist:### cargo-dist -h
cargo dist -h
cargo-dist-build:### cargo-dist-build
RUSTFLAGS="--cfg tokio_unstable" cargo dist build
cargo-dist-manifest-global:### cargo dist manifest --artifacts=all
cargo dist manifest --artifacts=all
# vim: set noexpandtab:
# vim: set setfiletype make
#