Repository navigation
v0.1.0-beta.6
Pre-release
Pre-release
·
52 commits
to main
since this release
Primarily a better-duck-tauri release: a second backend, runtime capability-scope
enforcement, and an example app, plus a breaking plugin-name fix. better-duck-core /
-diesel / -macros / -sys are version-bumped with the workspace but are functionally
unchanged since beta.5.
better-duck-tauri
Breaking
- Plugin renamed
duck→better-duck-tauri. The runtime plugin name now matches the ACL
permission namespace (derived from the crate name): the invoke prefix is
plugin:better-duck-tauri|…and capabilities grantbetter-duck-tauri:*. Under beta.5'sduck
name no capability could authorize the commands — every invoke was denied — so the plugin was
unusable in a real capability-gated app.
Added
- Diesel-native backend (
diesel::init/diesel::Builder): an r2d2 pool of
DuckDbConnections per connection string,embed_migrations!migrations viaMigrationHarness
run through the crash-safe backup protocol, and dynamic SQL executed on the pooled connection's
underlying core connection. - Capability-file scope enforcement (
scope::Entry+global_scope_schema):load,import,
andexportenforce the mergedGlobalScope/CommandScopeat runtime — deny-first, then
require an allow-match, with traversal-safe, component-aware path matching. - Per-platform default checkpoint strategies (
Builder::checkpoint_platform_defaults). @better-duck/tauridist-js build and a complete example app (examples/tauri-app).
Fixed / hardened
- Path-scope traversal bypass (
..rejected; whole-component matching). on_connecthooks now run once per pooled connection (were re-run on every checkout).exportruns the statement filter; chrono kept consistent in thebackend-dieselfeature.
Infrastructure
- CI: Android arm64 cross-build (
cargo-ndk), a dedicated Tauri-plugin job with the Linux
GTK/webkit deps, cached DuckDB C builds, and Pages docs that now include the plugin.