Repository navigation
Releases
bdk_turso 0.3.2
Added
- Public
Store::pull()refreshes a remote store's local cache and reports whether remote changes were applied. It returnsOk(false)for local stores, matchingStore::push(). - Remote cache lifecycle methods:
Store::checkpoint()reclaims cache WAL space,Store::flush_cache()pushes pending changes and then checkpoints,Store::cache_stats()returns a crate-ownedCacheStats, andStore::cache_path()returns the local cache file path. These are no-ops or returnNonefor local stores. - Remote sync configuration on
Options:with_bootstrap_if_empty,with_long_poll_timeout,with_client_name,with_auth_token_fn,with_partial_sync_opts_experimental, andwith_logical_mvcc_pull.PartialSyncOptsandPartialBootstrapStrategyare re-exported from Turso. Local stores reject these options withError::UnsupportedOption. Error::RemotePull,Error::RemoteCheckpoint, andError::RemoteStatsidentify failures from the new cache methods.- Automated crates.io publishing on
v*tags, including tag/version and changelog checks, package-content checks, a publish dry run, and GitHub release creation. See RELEASING.md.
Changed
- Documented attribution for the
bdk_sqlitefork andbdk_redbtests, expectations for modified forks, and the risks of changing database tables, WAL files, or sync-cache files outside the supported APIs. - docs.rs now builds the crate with all features, so the
wallet,psbt, andremoteAPIs appear in the published documentation.
Fixed
- The blocking
WalletPersisternow returnsError::BlockingRuntimeinstead of panicking when its helper Tokio runtime cannot be built.
crates.io: https://crates.io/crates/bdk_turso/0.3.2
docs.rs: https://docs.rs/bdk_turso/0.3.2
bdk_turso 0.3.1
Added
- Default B-tree indexes for lookup columns:
block(hash),txout(script),anchor(txid),anchor(block_hash), andkeychain_script_pubkey(script)with thewalletfeature.Store::migrate()creates them for new and existing databases. Options::with_transaction_behaviorselectsDeferred,Immediate,Exclusive, orConcurrenttransactions for every store operation, andTransactionBehavioris re-exported from Turso.Concurrentswitches local databases to MVCC journal mode;Store::migrateandStore::migrate_tostill useDeferredfor DDL.Error::ConflictingOptionsreports option combinations that Turso cannot run, such aswith_multiprocess_waltogether withTransactionBehavior::Concurrent.- Reproducible benchmark suite comparing
bdk_turso,bdk_sqlite, andbdk_redbon wallet changeset reads and writes, concurrent writes at several writer counts, database opening, and on-disk storage. Sample and batch sizes, writer counts, dataset shape, Turso options, and enabled backends are configurable through an optionalbenches/config.tomlor--config. Results are published in BENCHMARK.md and are not run or thresholded in CI.
Changed
Store::migrate()builds the new lookup indexes on existing databases the next time it runs. Expect a one-time index-build cost and extra disk usage proportional to table size; the indexes are additive, so older versions can still open the database.Store::migrate_tonow copies user indexes as well as tables and rows. It returnsError::Migrationif the destination already has an index with the same name but a different definition, rather than leaving the destination without the index.- Expanded documentation for every experimental Turso option with when to use it, how it affects query behavior, and whether it changes the crate's schema or persistence queries. Added tests that run the crate's read and write queries with the experimental options enabled.
- The wallet and transaction examples now load settings from a shared
examples/config.toml.examples/example.tomlis the committed template; the local file is ignored by git, and a missing or invalid configuration stops with an actionable error.
Fixed
- PSBT persistence now fails closed with
Error::PsbtRequiresEncryptionunless the store was opened with local at-rest encryption. Stores without encryption, stores created with unknown opening options, and remote stores are rejected. - Local and remote Turso connections now use a five-second busy timeout. Concurrent writers wait for the write lock instead of failing immediately with a
Busyerror, matching the default behavior ofbdk_sqlite's SQLx connections.
crates.io: https://crates.io/crates/bdk_turso/0.3.1
docs.rs: https://docs.rs/bdk_turso/0.3.1
bdk_turso 0.3.0
Added
generate_encryption_opts()creates local encryption options with a random 32-byte key and the defaultaes256gcmcipher.Storeimplements BDK's blockingWalletPersisterbehind the newblockingfeature, whichwalletenables by default. Blocking calls run on a dedicated thread with a fresh Tokio runtime, so they are safe inside an async runtime.Store::migrate_tocopies persisted tables and rows to another store, including between in-memory and file stores. Source rows replace conflicting destination rows, while destination-only rows remain.- Public
Store::push()lets callers retry remote uploads;Error::RemotePushidentifies a failed upload after local commit.
Fixed
- Wallet persistence writes now apply conflicting block, descriptor, network, and script-cache values; locked-outpoint inserts use explicit upserts.
Changed
- Marked
Erroras non-exhaustive, so downstream exhaustive matches must include a wildcard arm, and added variant-specific prefixes to its display messages.
crates.io: https://crates.io/crates/bdk_turso/0.3.0
docs.rs: https://docs.rs/bdk_turso/0.3.0
bdk_turso 0.2.5
Added
- Optional
remotefeature for syncing a local Turso cache with Turso Cloud throughStore::new_remoteandStore::new_remote_with_options, including remote encryption configuration.
Changed
Storenow represents its database as an enum to support local and remote backends.psbtis independent ofwallet; migrations always create the core chain and transaction tables, while wallet-specific and PSBT tables are created only when their respective features are enabled.
crates.io: https://crates.io/crates/bdk_turso/0.2.5
docs.rs: https://docs.rs/bdk_turso/0.2.5
bdk_turso 0.2.4
Added
- Opt-in PSBT persistence keyed by the unsigned transaction ID; the transaction example now reloads and verifies its PSBT before signing and broadcasting. The PSBT table is migrated only with the
psbtfeature enabled.
Changed
Store::options()now returnsNonefor stores created withStore::from_database, where the database's opening options are unknown. Store constructors retain their known options, including defaults.
crates.io: https://crates.io/crates/bdk_turso/0.2.4
docs.rs: https://docs.rs/bdk_turso/0.2.4
bdk_turso 0.2.3
Changed
- Component-level store read and write methods now open and manage their own connections and transactions; callers no longer pass transactions to these methods.
- Wallet changeset writes remain atomic, and changeset reads use a consistent transaction across components.
crates.io: https://crates.io/crates/bdk_turso/0.2.3
docs.rs: https://docs.rs/bdk_turso/0.2.3
bdk_turso 0.2.2
Changed
- Expanded API documentation for store methods and wallet persistence.
Fixed
- Selected the standard-library implementation for the
branchesdependency to avoid its incompatible nightly-only code path in documentation builds.
crates.io: https://crates.io/crates/bdk_turso/0.2.2
docs.rs: https://docs.rs/bdk_turso/0.2.2
bdk_turso 0.2.1
Changed
- Made
Optionsfields private and added builder methods to configure experimental options and encryption.
crates.io: https://crates.io/crates/bdk_turso/0.2.1
docs.rs: https://docs.rs/bdk_turso/0.2.1
bdk_turso 0.2.0
Added
- Configurable experimental Turso options, disabled by default, and encryption options.
- Continuous integration checks for stable Rust and Rust 1.88.
- Contribution guidelines and GitHub issue and pull request templates.
crates.io: https://crates.io/crates/bdk_turso/0.2.0
docs.rs: https://docs.rs/bdk_turso/0.2.0
bdk_turso 0.1.0
Added
- Initial release of the async Turso persistence backend for
bdk_wallet, implementingAsyncWalletPersister. - A SQLite-compatible persistence schema and migration, with wallet-state persistence and read/write methods.
- A wallet example and persistence tests, including a check that the database can be read by
bdk_sqlite.
crates.io: https://crates.io/crates/bdk_turso/0.1.0
docs.rs: https://docs.rs/bdk_turso/0.1.0