Skip to content

Commit 9866309

Browse files
committed
Add async implementation of FilesystemStore
1 parent 61e5819 commit 9866309

File tree

2 files changed

+255
-58
lines changed

2 files changed

+255
-58
lines changed

lightning-persister/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ edition = "2021"
1313
all-features = true
1414
rustdoc-args = ["--cfg", "docsrs"]
1515

16+
[features]
17+
tokio = ["dep:tokio"]
18+
1619
[dependencies]
1720
bitcoin = "0.32.2"
1821
lightning = { version = "0.2.0", path = "../lightning" }
22+
tokio = { version = "1.35", optional = true, default-features = false, features = ["rt-multi-thread"] }
1923

2024
[target.'cfg(windows)'.dependencies]
2125
windows-sys = { version = "0.48.0", default-features = false, features = ["Win32_Storage_FileSystem", "Win32_Foundation"] }
@@ -26,6 +30,7 @@ criterion = { version = "0.4", optional = true, default-features = false }
2630
[dev-dependencies]
2731
lightning = { version = "0.2.0", path = "../lightning", features = ["_test_utils"] }
2832
bitcoin = { version = "0.32.2", default-features = false }
33+
tokio = { version = "1.35", default-features = false, features = ["macros"] }
2934

3035
[lints]
3136
workspace = true

0 commit comments

Comments
 (0)