Skip to content

Commit bfd433d

Browse files
committed
chore(rust): small improvements
- pnpm rust.update updates the snapshots - nix devshell fix to make rust-analyzer work
1 parent 8319829 commit bfd433d

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Makefile

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ lint:
2727
test:
2828
cargo test
2929

30+
test-update:
31+
if ! cargo test; then \
32+
cd packages/qwik/src/optimizer/core/src/snapshots/ && for i in *.new; do f=$$(basename $$i .new); mv $$i $$f; done; \
33+
cargo test; \
34+
fi
35+
3036
publish-core:
3137
cd src/optimizer/core && cargo publish --all-features
3238

flake.nix

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
# Provides rustc and cargo
2929
((rust-bin.fromRustupToolchainFile
3030
./rust-toolchain).override {
31+
# For rust-analyzer
32+
extensions = [ "rust-src" ];
33+
# For building wasm
3134
targets = [ "wasm32-unknown-unknown" ];
3235
})
3336
];

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@
194194
"test.e2e.firefox": "playwright test starters --browser=firefox --config starters/playwright.config.ts",
195195
"test.e2e.webkit": "playwright test starters --browser=webkit --config starters/playwright.config.ts",
196196
"test.rust": "make test",
197+
"test.rust.update": "make test-update",
197198
"test.unit": "vitest packages",
198199
"test.unit.debug": "vitest --inspect-brk packages",
199200
"test.vite": "playwright test starters/e2e/qwikcity --browser=chromium --config starters/playwright.config.ts",

0 commit comments

Comments
 (0)