orbitinghail / sqlsync

SQLSync is a collaborative offline-first wrapper around SQLite. It is designed to synchronize web application state between users, devices, and the edge.
https://sqlsync.dev
Apache License 2.0
2.19k stars 28 forks source link

[BUG] Cannot compile reducer #30

Closed steveruizok closed 7 months ago

steveruizok commented 7 months ago

Describe the bug Cannot build the reducer (on MacOS).

To Reproduce Follow the guide. When running cargo build --target wasm32-unknown-unknown --release, get many errors such as error[E0425]: cannot find functionv128_andin this scope. See full error log here: https://gist.github.com/steveruizok/7e2ef31bddaeaedfe738237eeb3d7048

steveruizok commented 7 months ago

(fwiw rustup target add wasm32-unknown-unknown returns info: component 'rust-std' for target 'wasm32-unknown-unknown' is up to date, so that doesn't seem to be it)

carlsverre commented 7 months ago

It looks like you are using Rust nightly. I'll update the guide to specify that stable is required, as rust nightly is adding some new f128 features which are not supported in Wasm yet.

To fix this you can either change your default toolchain:

rustup default stable

Or use a specific toolchain for this build:

rustup run stable cargo build --target wasm32-unknown-unknown --release

Thanks for the report! Please let me know if this addresses the issue.