0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

Merge pull request #6036 from penpot/elenatorro-10427-update-rust-last-version

🔧 Upgrade rust to v1.85
This commit is contained in:
Alejandro 2025-03-11 08:40:33 +01:00 committed by GitHub
commit dfbf0d34b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 3 deletions

View file

@ -263,6 +263,12 @@ jobs:
command: | command: |
cargo fmt --check cargo fmt --check
- run:
name: "lint"
working_directory: "./render-wasm"
command: |
./lint
- run: - run:
name: "cargo tests" name: "cargo tests"
working_directory: "./render-wasm" working_directory: "./render-wasm"

View file

@ -9,7 +9,7 @@ ENV NODE_VERSION=v22.13.1 \
BABASHKA_VERSION=1.12.196 \ BABASHKA_VERSION=1.12.196 \
CLJFMT_VERSION=0.13.0 \ CLJFMT_VERSION=0.13.0 \
RUSTUP_VERSION=1.27.1 \ RUSTUP_VERSION=1.27.1 \
RUST_VERSION=1.82.0 \ RUST_VERSION=1.85.0 \
LANG=en_US.UTF-8 \ LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8 LC_ALL=en_US.UTF-8

View file

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
_SCRIPT_DIR=$(dirname $0);
pushd $_SCRIPT_DIR;
# Enable debugging if the script is run with --debug # Enable debugging if the script is run with --debug
if [[ "$1" == "--debug" ]]; then if [[ "$1" == "--debug" ]]; then
@ -33,7 +36,7 @@ ALLOWED_RULES="
-A clippy::unwrap_or_default \ -A clippy::unwrap_or_default \
-A clippy::useless_format \ -A clippy::useless_format \
-A clippy::wrong_self_convention \ -A clippy::wrong_self_convention \
-A dead_code" -D static_mut_refs"
# ./lint --fix # ./lint --fix
if [[ "$1" == "--fix" ]]; then if [[ "$1" == "--fix" ]]; then
@ -48,3 +51,4 @@ else
-- -D warnings \ -- -D warnings \
$ALLOWED_RULES $ALLOWED_RULES
fi fi
popd

View file

@ -45,6 +45,6 @@ cd ..
echo "################ test render-wasm ################" echo "################ test render-wasm ################"
cd render-wasm cd render-wasm
cargo fmt --check cargo fmt --check
./lint --debug
./test ./test
cd .. cd ..