Skip to content

Commit e60c73e

Browse files
authored
Update Rust to 1.96.0 (#184)
1 parent a9f07ac commit e60c73e

19 files changed

Lines changed: 51 additions & 50 deletions

File tree

.cargo/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ rustflags = [
2222
"-C", "link-arg=-lgcc_eh",
2323
]
2424

25+
[target.'cfg(target_family = "wasm")']
26+
rustflags = [
27+
"-C", "link-arg=--allow-undefined",
28+
]
29+
2530
[target.x86_64-unknown-linux-gnu]
2631
linker = "x86_64-linux-gnu-gcc"
2732

.github/actions/android/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ runs:
2525
- name: Setup
2626
shell: bash
2727
run: |
28-
rustup toolchain install nightly-2025-12-05-x86_64-unknown-linux-gnu
29-
rustup component add rust-src --toolchain nightly-2025-12-05-x86_64-unknown-linux-gnu
28+
rustup toolchain install nightly-2026-04-10-x86_64-unknown-linux-gnu
29+
rustup component add rust-src --toolchain nightly-2026-04-10-x86_64-unknown-linux-gnu
3030
rustup target add \
3131
aarch64-linux-android \
3232
armv7-linux-androideabi \

.github/actions/linux/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-12-05
10+
toolchain: nightly-2026-04-10
1111
components: rust-src
1212
targets: aarch64-unknown-linux-gnu,x86_64-unknown-linux-gnu,i686-unknown-linux-gnu,riscv64gc-unknown-linux-gnu,armv7-unknown-linux-gnueabihf
1313

.github/actions/macos/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-12-05
10+
toolchain: nightly-2026-04-10
1111
components: rust-src
1212
targets: x86_64-apple-darwin,aarch64-apple-darwin
1313

.github/actions/wasm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-12-05
10+
toolchain: nightly-2026-04-10
1111
components: rust-src
1212

1313
- name: Setup emsdk

.github/actions/windows/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ runs:
77
- name: Install Rust Nightly
88
uses: dtolnay/rust-toolchain@stable
99
with:
10-
toolchain: nightly-2025-12-05
10+
toolchain: nightly-2026-04-10
1111
components: rust-src
1212
targets: x86_64-pc-windows-msvc,aarch64-pc-windows-msvc,i686-pc-windows-msvc
1313

.github/actions/xcframework/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ runs:
77
- name: Setup
88
shell: bash
99
run: |
10-
rustup toolchain install nightly-2025-12-05-aarch64-apple-darwin
11-
rustup component add rust-src --toolchain nightly-2025-12-05-aarch64-apple-darwin
10+
rustup toolchain install nightly-2026-04-10-aarch64-apple-darwin
11+
rustup component add rust-src --toolchain nightly-2026-04-10-aarch64-apple-darwin
1212
rustup target add \
1313
x86_64-apple-darwin \
1414
aarch64-apple-darwin \

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: Install Rust Nightly
8282
uses: dtolnay/rust-toolchain@stable
8383
with:
84-
toolchain: nightly-2025-12-05
84+
toolchain: nightly-2026-04-10
8585
components: rust-src,rustfmt,clippy
8686

8787
- name: Check formatting
@@ -201,7 +201,7 @@ jobs:
201201
- name: Install Rust Nightly
202202
uses: dtolnay/rust-toolchain@stable
203203
with:
204-
toolchain: nightly-2025-12-05
204+
toolchain: nightly-2026-04-10
205205
components: rust-src
206206

207207
- name: Install valgrind

crates/core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ authors.workspace = true
99
keywords.workspace = true
1010
description = "The PowerSync SQLite extension"
1111
readme = "README.md"
12+
rust-version = "1.96"
1213

1314
[lib]
1415
name = "powersync_core"

crates/core/src/bson/de.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
use core::assert_matches;
12
use serde::{
23
de::{
34
self, DeserializeSeed, EnumAccess, IntoDeserializer, MapAccess, SeqAccess, VariantAccess,
@@ -248,10 +249,7 @@ impl<'de> SeqAccess<'de> for Deserializer<'de> {
248249
}
249250

250251
// Skip name
251-
assert!(matches!(
252-
self.position,
253-
DeserializerPosition::BeforeName { .. }
254-
));
252+
assert_matches!(self.position, DeserializerPosition::BeforeName { .. });
255253
self.prepare_to_read(true)?;
256254

257255
// And deserialize value!

0 commit comments

Comments
 (0)