You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide sqlite solution for `wasm32-unknown-unknown` target.
@@ -93,11 +91,11 @@ Here is an example showing how to use `sqlite-wasm-rs` to implement a simple in-
93
91
This library is not thread-safe:
94
92
95
93
*`JsValue` is not cross-threaded, see <https://github.com/rustwasm/wasm-bindgen/pull/955> for details.
96
-
* sqlite is compiled with `-DSQLITE_THREADSAFE=0`
94
+
* sqlite is compiled with `-DSQLITE_THREADSAFE=0`.
97
95
98
96
## Precompiled libsqlite3.a
99
97
100
-
Since `wasm32-unknown-unknown` does not have sysroot, emscripten is used here for compilation, otherwise we need to copy a bunch of c headers required for sqlite3 compilation. If sqlite3 is compiled at compile time, the emscripten toolchain is required, and we cannot assume that all users have it installed. (Believe me, because rust mainly supports the `wasm32-unknown-unknown` target, most people do not have the emscripten toolchain). Considering that wasm is cross-platform, vendor compilation products are acceptable.
98
+
Since `wasm32-unknown-unknown` does not have sysroot, emscripten is used here for compilation, otherwise we need to copy a bunch of c headers required for sqlite3 compilation. If bundled feature is enabled, the emscripten toolchain is required, and we cannot assume that all users have it installed. (Believe me, because rust mainly supports the `wasm32-unknown-unknown` target, most people do not have the emscripten toolchain). Considering that wasm is cross-platform, vendor compilation products are acceptable.
0 commit comments