File tree Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Expand file tree Collapse file tree 2 files changed +17
-11
lines changed Original file line number Diff line number Diff line change @@ -95,20 +95,26 @@ export RUSTC
95
95
RUSTUP: =$(shell which rustup)
96
96
export RUSTUP
97
97
98
+ FEATURES: =\
99
+ async-std\
100
+
101
+ RELEASE: =\
102
+ stable\
103
+
104
+
98
105
- :
99
106
@awk ' BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?##/ {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST )
100
107
help :# # help
101
108
@sed -n ' s/^##//p' ${MAKEFILE_LIST} | column -t -s ' :' | sed -e ' s/^/ /'
102
- rustup-install :rustup-install-stable # # rustup-install
103
- rustup-install-stable :# # rustup-install-stable
109
+ rustup-install :rustup-install-$( RELEASE ) # # rustup-install
110
+ rustup-install-$( RELEASE ) :# # rustup-install-$(RELEASE)
104
111
# # install rustup sequence
105
- $(shell echo which rustup) || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain stable --profile default && . "$(HOME)/.cargo/env"
106
- $(shell echo which rustup) && rustup default stable
107
- rustup-install-nightly :# # rustup-install-nightly
108
- # # install rustup sequence
109
- $(shell echo which rustup) || curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain nightly --profile default && . "$(HOME)/.cargo/env"
110
- $(shell echo which rustup) && rustup default nightly
111
-
112
+ $(shell echo which rustup) || \
113
+ curl --proto '=https' --tlsv1.2 -sSf https ://sh.rustup.rs | \
114
+ sh -s -- -y --no-modify-path \
115
+ --default-toolchain $(RELEASE) \
116
+ --profile default && . "$(HOME)/.cargo/env"
117
+ $(shell echo which rustup) && rustup default $(RELEASE)
112
118
113
119
cargo-b :# # cargo-b
114
120
[ -x " $( shell command -v $( RUSTUP) ) " ] || $(MAKE ) rustup-install-stable
Original file line number Diff line number Diff line change 3
3
cargo-help :# ## cargo-help
4
4
@awk ' BEGIN {FS = ":.*?###"} /^[a-zA-Z_-]+:.*?###/ {printf "\033[36m%-15s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST )
5
5
6
- cargo-bt :cargo-build-tokio# ## cargo-bt
7
- cargo-build-tokio :# ## cargo-build-tokio
6
+ cargo-bt :cargo-build-tokio
7
+ cargo-build-tokio :
8
8
# # make cargo-build-tokio q=true
9
9
@. $(HOME)/.cargo/env
10
10
@RUST_BACKTRACE=all cargo b $(QUIET) --no-default-features --features tokio
You can’t perform that action at this time.
0 commit comments