mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-27 13:04:20 +01:00
This PR updates to version Rust 1.88.0 ([Release notes](https://releases.rs/docs/1.88.0/)) and fixes all the clippy errors that come with the new Rust version. This is possible in the latest Rust version: ```rust if let Some(foo) = bar && foo.is_cool() { ... } ``` There are three complications in the migration (so far): - A BUNCH of Clippy warnings (mostly fixed in https://github.com/tursodatabase/limbo/pull/1827) - Windows cross compilation failed; linking `advapi32` on windows fixes it - Since Rust 1.87.0, advapi32 is not linked by default anymore ([Release notes](https://github.com/rust- lang/rust/blob/master/RELEASES.md#compatibility-notes-1), [PR](https://github.com/rust-lang/rust/pull/138233)) - Rust is more strict with FFIs and aligning pointers now. CI checks failed with error below - Fixed in https://github.com/tursodatabase/turso/pull/2064 ``` thread 'main' panicked at core/ext/vtab_xconnect.rs:64:25: misaligned pointer dereference: address must be a multiple of 0x8 but is 0x7ffd9d901554 ``` Closes #1807
Integration and regression test suite.
# run all tests
cargo test
# run individual test
cargo test test_sequential_write -- --nocapture