23 Commits

Author SHA1 Message Date
Sebastian Jeltsch
08bcf98e67 Disable V8 runtime by default (custom builds can still enable it) and add a truly static binary release for Linux using MUSL.
Building with MUSL required vendoring sqlite-vec and OpenSSL.

Also clean up no-longer-supported TypeScript guest scripts.
2025-10-07 20:47:28 +02:00
Sebastian Jeltsch
7a8c31c8e9 Cleanup: move all Rust code into a crates/ directory. 2025-08-07 10:02:32 +02:00
Sebastian Jeltsch
68fd451d03 Prepare new crate releases. 2025-06-16 16:19:11 +02:00
Sebastian Jeltsch
de4cdea348 Update Rust dependencies. 2025-06-11 11:55:13 +02:00
Sebastian Jeltsch
5152cf9000 Replace vendored refinery with a more proper fork stripping all the unused bits and bobs. 2025-05-27 22:01:06 +02:00
Sebastian Jeltsch
01feb22e44 serde_rusqlite finally got an update. Remove vendored version. 2025-05-27 12:15:52 +02:00
Sebastian Jeltsch
1be7590362 Update to latest rusqlite/SQLite version. 2025-05-26 11:55:09 +02:00
Sebastian Jeltsch
c4a4dfd575 Update rusqlite to v0.35, which has more strict query validation \o/. Also update other Rust and JS deps. 2025-05-03 11:42:59 +02:00
Sebastian Jeltsch
22f4a20c72 Update Rust dependencies. 2025-04-21 09:11:41 +02:00
Sebastian Jeltsch
2f07a86030 Update rusqlite: v0.33 -> v0.34. 2025-03-10 14:10:18 +01:00
Sebastian Jeltsch
7ab85594e9 Remove vendored rustc_tools_util. 2025-02-14 23:15:23 +01:00
Sebastian Jeltsch
b120321918 Fix build metadata in docker builds. Also vendor a fixed rustc_tools_util to get the correct release channel. 2025-01-31 16:46:34 +01:00
Sebastian Jeltsch
55c26afb0f Prepare release v0.5.1 and publish new crates. 2025-01-20 15:27:13 +01:00
Sebastian Jeltsch
5144dabc68 Major version update: SQLite 3.46.1 to 3.48.0. 2025-01-19 17:39:30 +01:00
Sebastian Jeltsch
98922eedb6 Further reduce reliance on symlinks. We're still relying on symlinks for assets, thus Windows builds will still require a correct symlink setup (git + permissions). 2025-01-05 22:36:27 +01:00
Sebastian Jeltsch
a323429c05 Depend on forked refinery crates. 2025-01-03 10:32:37 +01:00
Sebastian Jeltsch
e2c43a4c41 Prepare vendored sqlean to be published as a crate. 2024-12-30 11:36:07 +01:00
Sebastian Jeltsch
890fa37b2e Include sqlite3 headers from libsqlite3-sys bundled sqlite3 for sqlean rather than relying on system headers. 2024-12-25 22:36:31 +01:00
Sebastian Jeltsch
51a6af3149 Remove sqlite-loadable and use rusqlite functions instead. 2024-12-16 16:41:52 +01:00
Sebastian Jeltsch
12cbca7e1a Update Rust dependencies. 2024-12-07 21:55:34 +01:00
Sebastian Jeltsch
1b5c957415 Move SQLite orchestration into trailbase-sqlite and fix js-runtime completion bug with true async (previously libsql was sync under the hood). 2024-12-04 16:57:15 +01:00
Sebastian Jeltsch
6cbea390fb Herculean migration from libsql's rust bindings to plain rusqlite+SQLite.
There's a couple of reasons:

* As for the rust bindings: they're sub-par to rusqlite, though
  rusqlite is amazing. Even libsql-server uses rusqlite over their own
  bindings. The bindings are missing features such as update hooks
  and the hard-coded execution model suffers from lock congestion.
* We've fixed bugs (e.g. trivial null ptr accesses went unnoticed),
  raised issues, and tried to add missing functionality such as update
  hooks. It's unclear if the rust-bindings are a priority or covered by
  the principles laid out in the libsql manifesto. From the outside it
  looks like focus has shifted to https://github.com/penberg/limbo.
* As for the C-libsql fork for SQLite itself, it's getting more and
  more outdated (2024-01-30 (3.45.1)) and it's unclear when and if the
  ideas from the manifesto will manifest.

Looking forward this opens the door for TrailBase to:

* Bundle more recent versions of SQLite
* Implement more performant, better scaling execution models.
* Implement realtime APIs for subscribing to data changes.
2024-12-04 13:03:06 +01:00
Sebastian Jeltsch
bdb3735840 Squash all commits for a fresh start.
This is only to avoid accidentally leaking any secrets from early development especially in the light of short-sha attacks.
2024-10-30 23:38:56 +01:00