Skip to content

Releases

bdk_turso 0.3.2

Choose a tag to compare

@github-actions github-actions released this 16 Nov 12:13
f4716dd

Added

  • Public Store::pull() refreshes a remote store's local cache and reports whether remote changes were applied. It returns Ok(false) for local stores, matching Store::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-owned CacheStats, and Store::cache_path() returns the local cache file path. These are no-ops or return None for 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, and with_logical_mvcc_pull. PartialSyncOpts and PartialBootstrapStrategy are re-exported from Turso. Local stores reject these options with Error::UnsupportedOption.
  • Error::RemotePull, Error::RemoteCheckpoint, and Error::RemoteStats identify 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_sqlite fork and bdk_redb tests, 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, and remote APIs appear in the published documentation.

Fixed

  • The blocking WalletPersister now returns Error::BlockingRuntime instead 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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

Added

  • Default B-tree indexes for lookup columns: block(hash), txout(script), anchor(txid), anchor(block_hash), and keychain_script_pubkey(script) with the wallet feature. Store::migrate() creates them for new and existing databases.
  • Options::with_transaction_behavior selects Deferred, Immediate, Exclusive, or Concurrent transactions for every store operation, and TransactionBehavior is re-exported from Turso. Concurrent switches local databases to MVCC journal mode; Store::migrate and Store::migrate_to still use Deferred for DDL.
  • Error::ConflictingOptions reports option combinations that Turso cannot run, such as with_multiprocess_wal together with TransactionBehavior::Concurrent.
  • Reproducible benchmark suite comparing bdk_turso, bdk_sqlite, and bdk_redb on 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 optional benches/config.toml or --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_to now copies user indexes as well as tables and rows. It returns Error::Migration if 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.toml is 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::PsbtRequiresEncryption unless 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 Busy error, matching the default behavior of bdk_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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

Added

  • generate_encryption_opts() creates local encryption options with a random 32-byte key and the default aes256gcm cipher.
  • Store implements BDK's blocking WalletPersister behind the new blocking feature, which wallet enables by default. Blocking calls run on a dedicated thread with a fresh Tokio runtime, so they are safe inside an async runtime.
  • Store::migrate_to copies 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::RemotePush identifies 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 Error as 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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

Added

  • Optional remote feature for syncing a local Turso cache with Turso Cloud through Store::new_remote and Store::new_remote_with_options, including remote encryption configuration.

Changed

  • Store now represents its database as an enum to support local and remote backends.
  • psbt is independent of wallet; 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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

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 psbt feature enabled.

Changed

  • Store::options() now returns None for stores created with Store::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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

Changed

  • Expanded API documentation for store methods and wallet persistence.

Fixed

  • Selected the standard-library implementation for the branches dependency 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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

Changed

  • Made Options fields 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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

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

Choose a tag to compare

@emma31-dev emma31-dev released this 16 Nov 12:01

Added

  • Initial release of the async Turso persistence backend for bdk_wallet, implementing AsyncWalletPersister.
  • 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