Skip to content

Commit ed64c70

Browse files
authored
Switch .vscode extension to dependi and fix rust checks (#18)
The `serayuzgur.crates` extension is deprecated and causes a warning in vs code.
1 parent cb0bbc8 commit ed64c70

File tree

2 files changed

+18
-44
lines changed

2 files changed

+18
-44
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -22,80 +22,54 @@ jobs:
2222
- uses: actions-rs/toolchain@v1
2323
with:
2424
profile: default
25-
toolchain: 1.80.0
25+
toolchain: 1.81.0
2626
override: true
2727

2828
- name: Install packages (Linux)
2929
if: runner.os == 'Linux' && false # TODO: enable if eframe is part of the project, otherwise remove
30-
uses: awalsh128/cache-apt-pkgs-action@v1.3.0
30+
uses: awalsh128/cache-apt-pkgs-action@v1.4.3
3131
with:
3232
# some deps used by eframe, if that is part of the project
3333
packages: libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev # libgtk-3-dev is used by rfd
3434
version: 1.0
3535
execute_install_scripts: true
3636

37+
- uses: prefix-dev/setup-pixi@v0.8.1
38+
with:
39+
pixi-version: v0.39.0
40+
3741
- name: Set up cargo cache
3842
uses: Swatinem/rust-cache@v2
3943

4044
- name: Rustfmt
41-
uses: actions-rs/cargo@v1
42-
with:
43-
command: fmt
44-
args: --all -- --check
45+
run: pixi run cargo fmt --all -- --check
4546

4647
- name: check --all-features
47-
uses: actions-rs/cargo@v1
48-
with:
49-
command: check
50-
args: --all-features --all-targets
48+
run: pixi run cargo check --all-features --all-targets
5149

5250
- name: check default features
53-
uses: actions-rs/cargo@v1
54-
with:
55-
command: check
56-
args: --all-targets
51+
run: pixi run cargo check --all-targets
5752

5853
- name: check --no-default-features
59-
uses: actions-rs/cargo@v1
60-
with:
61-
command: check
62-
args: --no-default-features --lib --all-targets
54+
run: pixi run cargo check --no-default-features --all-targets
6355

6456
- name: Test doc-tests
65-
uses: actions-rs/cargo@v1
66-
with:
67-
command: test
68-
args: --doc --all-features
57+
run: pixi run cargo test --doc --all-features
6958

7059
- name: cargo doc --lib
71-
uses: actions-rs/cargo@v1
72-
with:
73-
command: doc
74-
args: --lib --no-deps --all-features
60+
run: pixi run cargo doc --lib --no-deps --all-features
7561

7662
- name: cargo doc --document-private-items
77-
uses: actions-rs/cargo@v1
78-
with:
79-
command: doc
80-
args: --document-private-items --no-deps --all-features
63+
run: pixi run cargo doc --document-private-items --no-deps --all-features
8164

8265
- name: Build tests
83-
uses: actions-rs/cargo@v1
84-
with:
85-
command: test
86-
args: --all-features --no-run
66+
run: pixi run cargo build --tests --all-features
8767

8868
- name: Run test
89-
uses: actions-rs/cargo@v1
90-
with:
91-
command: test
92-
args: --all-features
69+
run: pixi run cargo test --all-features
9370

9471
- name: Clippy
95-
uses: actions-rs/cargo@v1
96-
with:
97-
command: clippy
98-
args: --all-targets --all-features -- -D warnings
72+
run: pixi run cargo clippy --all-targets --all-features -- -D warnings
9973

10074
# ---------------------------------------------------------------------------
10175

.vscode/extensions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
// for the documentation about the extensions.json format
44
"recommendations": [
55
"charliermarsh.ruff",
6+
"esbenp.prettier-vscode",
7+
"fill-labs.dependi",
68
"gaborv.flatbuffers",
79
"github.vscode-github-actions",
810
"josetr.cmake-language-support-vscode",
@@ -13,14 +15,12 @@
1315
"ms-vsliveshare.vsliveshare",
1416
"polymeilex.wgsl",
1517
"rust-lang.rust-analyzer",
16-
"serayuzgur.crates",
1718
"streetsidesoftware.code-spell-checker",
1819
"tamasfe.even-better-toml",
1920
"vadimcn.vscode-lldb",
2021
"wayou.vscode-todo-highlight",
2122
"webfreak.debug",
2223
"xaver.clang-format", // C++ formatter
2324
"zxh404.vscode-proto3",
24-
"esbenp.prettier-vscode"
2525
]
2626
}

0 commit comments

Comments
 (0)