Skip to content

Commit 472dc6c

Browse files
committed
refactor(persist_test_utils)!: Rewrite persist_test_utils
Changed the definition of `persist_*` functions to take a `create_store` Fn (and no path) as the caller may want more control of the path to the database file. - deps: Make tempfile, anyhow dev-dependencies
1 parent 67ec82d commit 472dc6c

3 files changed

Lines changed: 225 additions & 116 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,8 @@ serde_json = { version = "1" }
2828
serde = { version = "1", features = ["derive"] }
2929

3030
# Optional dependencies
31-
anyhow = { version = "1", optional = true }
3231
bdk_file_store = { version = "0.21.1", optional = true }
3332
bip39 = { version = "2.2.2", optional = true }
34-
tempfile = { version = "3.26.0", optional = true }
3533

3634
[features]
3735
default = ["std"]
@@ -41,7 +39,7 @@ all-keys = ["keys-bip39"]
4139
keys-bip39 = ["bip39"]
4240
rusqlite = ["bdk_chain/rusqlite"]
4341
file_store = ["bdk_file_store"]
44-
test-utils = ["std", "anyhow", "tempfile"]
42+
test-utils = ["std"]
4543

4644
[dev-dependencies]
4745
anyhow = "1"

0 commit comments

Comments
 (0)