diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 4b1231f7..5c09328d 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -22,8 +22,8 @@ jobs: - name: Setup run: | - rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu - rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu + rustup toolchain install nightly-2025-04-15-x86_64-unknown-linux-gnu + rustup component add rust-src --toolchain nightly-2025-04-15-x86_64-unknown-linux-gnu rustup target add \ aarch64-linux-android \ armv7-linux-androideabi \ diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index aebd68e7..4c6057ee 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -14,8 +14,8 @@ jobs: - name: Setup run: | - rustup toolchain install nightly-2024-05-18-aarch64-apple-darwin - rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-apple-darwin + rustup toolchain install nightly-2025-04-15-aarch64-apple-darwin + rustup component add rust-src --toolchain nightly-2025-04-15-aarch64-apple-darwin rustup target add \ x86_64-apple-darwin \ aarch64-apple-darwin \ diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index a91d5bf3..0e8d7cb9 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -15,7 +15,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binaries @@ -33,7 +33,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binaries diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 67d24fa6..a59e0cda 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -15,7 +15,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binary @@ -33,7 +33,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binary diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 36028f36..9c9564be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,8 +52,8 @@ jobs: - name: Setup run: | - rustup toolchain install nightly-2024-05-18-x86_64-unknown-linux-gnu - rustup component add rust-src --toolchain nightly-2024-05-18-x86_64-unknown-linux-gnu + rustup toolchain install nightly-2025-04-15-x86_64-unknown-linux-gnu + rustup component add rust-src --toolchain nightly-2025-04-15-x86_64-unknown-linux-gnu rustup target add \ aarch64-linux-android \ armv7-linux-androideabi \ @@ -84,8 +84,8 @@ jobs: - name: Setup run: | - rustup toolchain install nightly-2024-05-18-aarch64-apple-darwin - rustup component add rust-src --toolchain nightly-2024-05-18-aarch64-apple-darwin + rustup toolchain install nightly-2025-04-15-aarch64-apple-darwin + rustup component add rust-src --toolchain nightly-2025-04-15-aarch64-apple-darwin rustup target add \ x86_64-apple-darwin \ aarch64-apple-darwin \ @@ -153,7 +153,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binaries @@ -178,7 +178,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binaries @@ -203,7 +203,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binary @@ -228,7 +228,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binary @@ -253,7 +253,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binary @@ -278,7 +278,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Setup emsdk diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20ec38da..3d771bde 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -27,7 +27,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index eab0977e..a37d3abd 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -8,20 +8,20 @@ jobs: if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Setup emsdk uses: mymindstorm/setup-emsdk@v14 with: - version: 3.1.68 + version: 4.0.7 - name: Build WASM run: ./tool/build_wasm.sh diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index fa13aab9..5ac33a3d 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -15,7 +15,7 @@ jobs: - name: Install Rust Nightly uses: dtolnay/rust-toolchain@stable with: - toolchain: nightly-2024-05-18 + toolchain: nightly-2025-04-15 components: rust-src - name: Build binary diff --git a/Cargo.toml b/Cargo.toml index 35067836..eb7eb754 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,6 @@ default-members = ["crates/shell", "crates/sqlite"] [profile.dev] panic = "abort" -strip = true [profile.release] panic = "abort" diff --git a/crates/core/src/checkpoint.rs b/crates/core/src/checkpoint.rs index 1e6527d5..32e29029 100644 --- a/crates/core/src/checkpoint.rs +++ b/crates/core/src/checkpoint.rs @@ -1,6 +1,5 @@ extern crate alloc; -use alloc::format; use alloc::string::String; use alloc::vec::Vec; use core::ffi::c_int; diff --git a/crates/core/src/diff.rs b/crates/core/src/diff.rs index 7e5ad185..fd37a059 100644 --- a/crates/core/src/diff.rs +++ b/crates/core/src/diff.rs @@ -1,6 +1,5 @@ extern crate alloc; -use alloc::format; use alloc::string::{String, ToString}; use core::ffi::c_int; diff --git a/crates/core/src/fix_data.rs b/crates/core/src/fix_data.rs index ec9c0da7..8dcab1b6 100644 --- a/crates/core/src/fix_data.rs +++ b/crates/core/src/fix_data.rs @@ -117,7 +117,7 @@ fn remove_duplicate_key_encoding(key: &str) -> Option { } fn powersync_remove_duplicate_key_encoding_impl( - ctx: *mut sqlite::context, + _ctx: *mut sqlite::context, args: &[*mut sqlite::value], ) -> Result, SQLiteError> { let arg = args.get(0).ok_or(ResultCode::MISUSE)?; diff --git a/crates/core/src/json_merge.rs b/crates/core/src/json_merge.rs index 80c16877..cb31479d 100644 --- a/crates/core/src/json_merge.rs +++ b/crates/core/src/json_merge.rs @@ -1,6 +1,5 @@ extern crate alloc; -use alloc::format; use alloc::string::{String, ToString}; use core::ffi::c_int; diff --git a/crates/core/src/lib.rs b/crates/core/src/lib.rs index 995e5f99..017a954f 100644 --- a/crates/core/src/lib.rs +++ b/crates/core/src/lib.rs @@ -2,7 +2,6 @@ #![feature(vec_into_raw_parts)] #![allow(internal_features)] #![feature(core_intrinsics)] -#![feature(error_in_core)] #![feature(assert_matches)] extern crate alloc; diff --git a/crates/core/src/uuid.rs b/crates/core/src/uuid.rs index db617f93..82d90460 100644 --- a/crates/core/src/uuid.rs +++ b/crates/core/src/uuid.rs @@ -1,6 +1,5 @@ extern crate alloc; -use alloc::format; use alloc::string::String; use alloc::string::ToString; use core::ffi::c_int; diff --git a/crates/loadable/src/lib.rs b/crates/loadable/src/lib.rs index c6ca6490..9e5a9de8 100644 --- a/crates/loadable/src/lib.rs +++ b/crates/loadable/src/lib.rs @@ -3,7 +3,6 @@ #![feature(core_intrinsics)] #![allow(internal_features)] #![feature(lang_items)] -#![feature(error_in_core)] extern crate alloc; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index e418b227..5d547223 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2024-05-18" +channel = "nightly-2025-04-15" diff --git a/tool/build_wasm.sh b/tool/build_wasm.sh index da505e7e..f40d8edc 100755 --- a/tool/build_wasm.sh +++ b/tool/build_wasm.sh @@ -1,5 +1,6 @@ #!/bin/bash set -e +emcc --version # Normal build # target/wasm32-unknown-emscripten/wasm/powersync.wasm @@ -31,13 +32,13 @@ cp "target/wasm32-unknown-emscripten/wasm_asyncify/powersync.wasm" "libpowersync # Static lib. # Works for both sync and asyncify builds. # Works for both emscripten and wasi. -# target/wasm32-wasi/wasm/libpowersync.a +# target/wasm32-wasip1/wasm/libpowersync.a cargo build \ -p powersync_loadable \ --profile wasm \ --no-default-features \ --features "powersync_core/static powersync_core/omit_load_extension sqlite_nostd/omit_load_extension" \ -Z build-std=panic_abort,core,alloc \ - --target wasm32-wasi + --target wasm32-wasip1 -cp "target/wasm32-wasi/wasm/libpowersync.a" "libpowersync-wasm.a" +cp "target/wasm32-wasip1/wasm/libpowersync.a" "libpowersync-wasm.a"