Skip to content

Commit 8d83323

Browse files
authored
Merge pull request #83 from powersync-ja/update-rust
Update Rust toolchain
2 parents d0d6aa2 + 5ea5951 commit 8d83323

File tree

17 files changed

+28
-34
lines changed

17 files changed

+28
-34
lines changed

.github/workflows/android.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ jobs:
2222

2323
- name: Setup
2424
run: |
25-
rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu
26-
rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu
25+
rustup toolchain install nightly-2025-04-15-x86_64-unknown-linux-gnu
26+
rustup component add rust-src --toolchain nightly-2025-04-15-x86_64-unknown-linux-gnu
2727
rustup target add \
2828
aarch64-linux-android \
2929
armv7-linux-androideabi \

.github/workflows/ios.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414

1515
- name: Setup
1616
run: |
17-
rustup toolchain install nightly-2024-05-18-aarch64-apple-darwin
18-
rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-apple-darwin
17+
rustup toolchain install nightly-2025-04-15-aarch64-apple-darwin
18+
rustup component add rust-src --toolchain nightly-2025-04-15-aarch64-apple-darwin
1919
rustup target add \
2020
x86_64-apple-darwin \
2121
aarch64-apple-darwin \

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Rust Nightly
1616
uses: dtolnay/rust-toolchain@stable
1717
with:
18-
toolchain: nightly-2024-05-18
18+
toolchain: nightly-2025-04-15
1919
components: rust-src
2020

2121
- name: Build binaries
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install Rust Nightly
3434
uses: dtolnay/rust-toolchain@stable
3535
with:
36-
toolchain: nightly-2024-05-18
36+
toolchain: nightly-2025-04-15
3737
components: rust-src
3838

3939
- name: Build binaries

.github/workflows/macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Rust Nightly
1616
uses: dtolnay/rust-toolchain@stable
1717
with:
18-
toolchain: nightly-2024-05-18
18+
toolchain: nightly-2025-04-15
1919
components: rust-src
2020

2121
- name: Build binary
@@ -33,7 +33,7 @@ jobs:
3333
- name: Install Rust Nightly
3434
uses: dtolnay/rust-toolchain@stable
3535
with:
36-
toolchain: nightly-2024-05-18
36+
toolchain: nightly-2025-04-15
3737
components: rust-src
3838

3939
- name: Build binary

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252

5353
- name: Setup
5454
run: |
55-
rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu
56-
rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu
55+
rustup toolchain install nightly-2025-04-15-x86_64-unknown-linux-gnu
56+
rustup component add rust-src --toolchain nightly-2025-04-15-x86_64-unknown-linux-gnu
5757
rustup target add \
5858
aarch64-linux-android \
5959
armv7-linux-androideabi \
@@ -84,8 +84,8 @@ jobs:
8484

8585
- name: Setup
8686
run: |
87-
rustup toolchain install nightly-2024-05-18-aarch64-apple-darwin
88-
rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-apple-darwin
87+
rustup toolchain install nightly-2025-04-15-aarch64-apple-darwin
88+
rustup component add rust-src --toolchain nightly-2025-04-15-aarch64-apple-darwin
8989
rustup target add \
9090
x86_64-apple-darwin \
9191
aarch64-apple-darwin \
@@ -153,7 +153,7 @@ jobs:
153153
- name: Install Rust Nightly
154154
uses: dtolnay/rust-toolchain@stable
155155
with:
156-
toolchain: nightly-2024-05-18
156+
toolchain: nightly-2025-04-15
157157
components: rust-src
158158

159159
- name: Build binaries
@@ -178,7 +178,7 @@ jobs:
178178
- name: Install Rust Nightly
179179
uses: dtolnay/rust-toolchain@stable
180180
with:
181-
toolchain: nightly-2024-05-18
181+
toolchain: nightly-2025-04-15
182182
components: rust-src
183183

184184
- name: Build binaries
@@ -203,7 +203,7 @@ jobs:
203203
- name: Install Rust Nightly
204204
uses: dtolnay/rust-toolchain@stable
205205
with:
206-
toolchain: nightly-2024-05-18
206+
toolchain: nightly-2025-04-15
207207
components: rust-src
208208

209209
- name: Build binary
@@ -228,7 +228,7 @@ jobs:
228228
- name: Install Rust Nightly
229229
uses: dtolnay/rust-toolchain@stable
230230
with:
231-
toolchain: nightly-2024-05-18
231+
toolchain: nightly-2025-04-15
232232
components: rust-src
233233

234234
- name: Build binary
@@ -253,7 +253,7 @@ jobs:
253253
- name: Install Rust Nightly
254254
uses: dtolnay/rust-toolchain@stable
255255
with:
256-
toolchain: nightly-2024-05-18
256+
toolchain: nightly-2025-04-15
257257
components: rust-src
258258

259259
- name: Build binary
@@ -278,7 +278,7 @@ jobs:
278278
- name: Install Rust Nightly
279279
uses: dtolnay/rust-toolchain@stable
280280
with:
281-
toolchain: nightly-2024-05-18
281+
toolchain: nightly-2025-04-15
282282
components: rust-src
283283

284284
- name: Setup emsdk

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Install Rust Nightly
2828
uses: dtolnay/rust-toolchain@stable
2929
with:
30-
toolchain: nightly-2024-05-18
30+
toolchain: nightly-2025-04-15
3131
components: rust-src
3232

3333
- name: Build

.github/workflows/wasm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@ jobs:
88
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository)
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
submodules: true
1414

1515
- name: Install Rust Nightly
1616
uses: dtolnay/rust-toolchain@stable
1717
with:
18-
toolchain: nightly-2024-05-18
18+
toolchain: nightly-2025-04-15
1919
components: rust-src
2020

2121
- name: Setup emsdk
2222
uses: mymindstorm/setup-emsdk@v14
2323
with:
24-
version: 3.1.68
24+
version: 4.0.7
2525

2626
- name: Build WASM
2727
run: ./tool/build_wasm.sh

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install Rust Nightly
1616
uses: dtolnay/rust-toolchain@stable
1717
with:
18-
toolchain: nightly-2024-05-18
18+
toolchain: nightly-2025-04-15
1919
components: rust-src
2020

2121
- name: Build binary

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ default-members = ["crates/shell", "crates/sqlite"]
99

1010
[profile.dev]
1111
panic = "abort"
12-
strip = true
1312

1413
[profile.release]
1514
panic = "abort"

crates/core/src/checkpoint.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
extern crate alloc;
22

3-
use alloc::format;
43
use alloc::string::String;
54
use alloc::vec::Vec;
65
use core::ffi::c_int;

crates/core/src/diff.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
extern crate alloc;
22

3-
use alloc::format;
43
use alloc::string::{String, ToString};
54
use core::ffi::c_int;
65

crates/core/src/json_merge.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
extern crate alloc;
22

3-
use alloc::format;
43
use alloc::string::{String, ToString};
54
use core::ffi::c_int;
65

crates/core/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#![feature(vec_into_raw_parts)]
33
#![allow(internal_features)]
44
#![feature(core_intrinsics)]
5-
#![feature(error_in_core)]
65
#![feature(assert_matches)]
76

87
extern crate alloc;

crates/core/src/uuid.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
extern crate alloc;
22

3-
use alloc::format;
43
use alloc::string::String;
54
use alloc::string::ToString;
65
use core::ffi::c_int;

crates/loadable/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#![feature(core_intrinsics)]
44
#![allow(internal_features)]
55
#![feature(lang_items)]
6-
#![feature(error_in_core)]
76

87
extern crate alloc;
98

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[toolchain]
2-
channel = "nightly-2024-05-18"
2+
channel = "nightly-2025-04-15"

tool/build_wasm.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22
set -e
3+
emcc --version
34

45
# Normal build
56
# target/wasm32-unknown-emscripten/wasm/powersync.wasm
@@ -31,13 +32,13 @@ cp "target/wasm32-unknown-emscripten/wasm_asyncify/powersync.wasm" "libpowersync
3132
# Static lib.
3233
# Works for both sync and asyncify builds.
3334
# Works for both emscripten and wasi.
34-
# target/wasm32-wasi/wasm/libpowersync.a
35+
# target/wasm32-wasip1/wasm/libpowersync.a
3536
cargo build \
3637
-p powersync_loadable \
3738
--profile wasm \
3839
--no-default-features \
3940
--features "powersync_core/static powersync_core/omit_load_extension sqlite_nostd/omit_load_extension" \
4041
-Z build-std=panic_abort,core,alloc \
41-
--target wasm32-wasi
42+
--target wasm32-wasip1
4243

43-
cp "target/wasm32-wasi/wasm/libpowersync.a" "libpowersync-wasm.a"
44+
cp "target/wasm32-wasip1/wasm/libpowersync.a" "libpowersync-wasm.a"

0 commit comments

Comments
 (0)