Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
rust:
- version: ${{ needs.prepare.outputs.rust_version }}
clippy: true
- version: 1.85.0 # Overall MSRV
- version: 1.89.0 # Overall MSRV
features:
- --no-default-features
- --all-features
Expand Down
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
[package]
name = "bdk_redb"
version = "0.2.0"
version = "0.3.0"
edition = "2024"
license = "MIT OR Apache-2.0"
description = "Persistence backend for bdk using redb"
repository = "https://github.com/110CodingP/bdk_redb"
readme = "README.md"
rust-version = "1.85.0"
rust-version = "1.89.0"

[dependencies]
bdk_wallet = {version = "3", optional = true}
bdk_chain = {version = "0.23", features = ["serde"]}
ciborium = "0.2.2"
redb = "2.5.0"
thiserror = "2.0.12"
redb = "4"
thiserror = "2"

[features]
default = ["wallet"]
wallet = ["bdk_wallet"]

[dev-dependencies]
anyhow = "1.0.98"
anyhow = "1.0"
bdk_testenv = { version = "0.13.0" }
tempfile = "3.20.0"
tempfile = "3.20"

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage,coverage_nightly)'] }
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv="1.85.0"
msrv="1.89.0"
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.85.0
1.89.0
15 changes: 7 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
//!
//! ```toml
//! [dependencies]
//! anyhow = "1.0.98"
//! bdk_redb = "0.1.1"
//! bdk_wallet = "2.0.0"
//! tempfile = "3.20.0"
//! bdk_redb = "0.3.0"
//! ```
//!
//! Now:
Expand All @@ -27,6 +24,7 @@
//! use bdk_wallet::{KeychainKind, Wallet};
//! use std::sync::Arc;
//! use tempfile::NamedTempFile;
//! use bdk_redb::{redb::Database, Store};
//!
//! use anyhow::Result;
//!
Expand All @@ -38,13 +36,12 @@
//! fn main() -> Result<()> {
//! let network = Network::Signet;
//! let file_path = NamedTempFile::new()?;
//! let db = Arc::new(bdk_redb::redb::Database::create(file_path.path())?);
//! let mut store = bdk_redb::Store::new(db, "wallet1".to_string())?;
//! let db = Arc::new(Database::create(file_path.path())?);
//! let mut store = Store::new(db, "wallet1".to_string())?;
//!
//! let wallet_opt = Wallet::load()
//! .descriptor(KeychainKind::External, Some(EXTERNAL_DESCRIPTOR))
//! .descriptor(KeychainKind::Internal, Some(INTERNAL_DESCRIPTOR))
//! .extract_keys()
//! .check_network(network)
//! .load_wallet(&mut store)?;
//!
Expand Down Expand Up @@ -88,7 +85,9 @@ use bdk_chain::{BlockId, DescriptorId, keychain_txout, local_chain, tx_graph};
#[cfg(feature = "wallet")]
use bdk_wallet::{ChangeSet, WalletPersister};
use error::StoreError;
use redb::{Database, ReadTransaction, ReadableTable, TableDefinition, WriteTransaction};
use redb::{
Database, ReadTransaction, ReadableDatabase, ReadableTable, TableDefinition, WriteTransaction,
};
use std::collections::{BTreeMap, BTreeSet};
use std::str::FromStr;
use std::sync::Arc;
Expand Down
Loading