sqlite_wasm_rs/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(
3    target_feature = "atomics",
4    feature(thread_local, stdarch_wasm_atomic_wait)
5)]
6
7#[rustfmt::skip]
8#[allow(non_upper_case_globals)]
9#[allow(non_camel_case_types)]
10#[allow(non_snake_case)]
11#[allow(clippy::type_complexity)]
12mod libsqlite3;
13
14#[cfg(not(feature = "custom-libc"))]
15#[allow(non_upper_case_globals)]
16#[allow(non_camel_case_types)]
17#[allow(non_snake_case)]
18mod shim;
19
20/// vfs implementation
21#[allow(non_upper_case_globals)]
22#[allow(non_camel_case_types)]
23#[allow(non_snake_case)]
24mod vfs;
25
26// sqlite3 bindings
27pub use libsqlite3::*;
28
29// mem vfs implementation
30pub use vfs::memory as mem_vfs;
31
32// opfs sync access handle vfs implementation
33pub use vfs::sahpool as sahpool_vfs;
34
35// relaxed idb vfs implementation
36#[cfg(feature = "relaxed-idb")]
37pub use vfs::relaxed_idb as relaxed_idb_vfs;
38
39// some tools for implementing VFS
40pub use vfs::utils;
41
42// `pub use` to avoid optimization
43#[cfg(feature = "custom-libc")]
44pub use sqlite_wasm_libc;
45
46#[cfg(test)]
47wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_dedicated_worker);