1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Copyright © The Daybrite Project
# SPDX-License-Identifier: MPL-2.0
[]
= "day-sqlite-worker"
= true
# Edition 2021 because src/bindings.rs is rust-bindgen output (pre-2024 `extern "C"` blocks)
# vendored from sqlite-wasm-rs, and staying on 2021 means a future regeneration drops in
# without editing generated code.
= "2021"
= true
= true
= true
= true
# The SQLite engine day-persistence uses on web-dom (docs/persistence.md): the vendored
# amalgamation compiled to wasm with no libc and no wasm-bindgen, a VFS over the synchronous
# OPFS access-handle imports the day-sql worker page provides, and the statement protocol the
# main thread speaks to it over the SharedArrayBuffer channel. The browser half ships here
# too, under web/ (see [package.metadata.day.web] below). One wasm, two instantiations:
# the app instance uses only `Connection` on `:memory:` databases; the worker instance runs
# `day_sql_exec` against real OPFS files. Compiles and tests on native hosts too (the OPFS
# imports swap for an in-memory fake), so the whole engine path is unit-testable without a
# browser.
[]
= { = true }
[]
= { = true }
# The crate's browser half (docs/web.md "Web modules"). `day build -t web-dom` stages both files
# beside each other and the host page imports the module before it instantiates the app: it
# supplies the `day_sql_*` imports and starts the worker.
[]
= ["web/day-sql.js"]
= ["web/day-sql-worker.js"]
[]
= true