Skip to content

Commit

Permalink
Use rust-toolchain.toml and newer rust version
Browse files Browse the repository at this point in the history
Use rust-toolchain.toml file over makefile installation.
Signed-off-by: James Sturtevant <[email protected]>
  • Loading branch information
jsturtevant committed Mar 21, 2024
1 parent 6f12d9c commit b673542
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/bvt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
uses: actions/checkout@v3
- name: Check
run: |
make deps
make check
make -C compiler check
make -C ttrpc-codegen check
Expand All @@ -28,7 +27,6 @@ jobs:
uses: actions/checkout@v3
- name: Build
run: |
make deps
make
make -C compiler
make -C ttrpc-codegen
Expand Down
8 changes: 0 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
RUST_VERSION = 1.66

all: debug test

#
Expand Down Expand Up @@ -34,9 +32,3 @@ endif
check:
cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings

.PHONY: deps
deps:
rustup install $(RUST_VERSION)
rustup default $(RUST_VERSION)
rustup component add rustfmt clippy
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel="1.77.0"
profile="default"
components=["rustfmt", "clippy"]

0 comments on commit b673542

Please sign in to comment.