Skip to content

Commit 2751355

Browse files
committed
Add lightning-storage crate
We add a new `lightning-storage` crate for `KVStore` implementations which will supersede the `lightning-persister` crate.
1 parent dcaa085 commit 2751355

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ members = [
66
"lightning-invoice",
77
"lightning-net-tokio",
88
"lightning-persister",
9+
"lightning-storage",
910
"lightning-background-processor",
1011
"lightning-rapid-gossip-sync"
1112
]

lightning-storage/Cargo.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[package]
2+
name = "lightning-storage"
3+
version = "0.0.116"
4+
authors = ["Elias Rohrer"]
5+
license = "MIT OR Apache-2.0"
6+
repository = "https://github.com/lightningdevkit/rust-lightning"
7+
description = """
8+
Utilities for LDK data persistence and retrieval.
9+
"""
10+
edition = "2018"
11+
12+
[package.metadata.docs.rs]
13+
all-features = true
14+
rustdoc-args = ["--cfg", "docsrs"]
15+
16+
[dependencies]
17+
lightning = { version = "0.0.116", path = "../lightning", default-features = false, features = ["std"] }
18+
rand = "0.8.5"
19+
libc = "0.2"

lightning-storage/src/lib.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//! Provides utilities for LDK data persistence and retrieval.
2+
//
3+
// TODO: Prefix these with `rustdoc::` when we update our MSRV to be >= 1.52 to remove warnings.
4+
#![deny(broken_intra_doc_links)]
5+
#![deny(private_intra_doc_links)]
6+
7+
#![deny(missing_docs)]
8+
#![deny(unsafe_code)]
9+
10+
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

msrv-no-dev-deps-check/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ lightning-block-sync = { path = "../lightning-block-sync", features = [ "rest-cl
99
lightning-invoice = { path = "../lightning-invoice" }
1010
lightning-net-tokio = { path = "../lightning-net-tokio" }
1111
lightning-persister = { path = "../lightning-persister" }
12+
lightning-storage = { path = "../lightning-storage" }
1213
lightning-background-processor = { path = "../lightning-background-processor", features = ["futures"] }
1314
lightning-rapid-gossip-sync = { path = "../lightning-rapid-gossip-sync" }

0 commit comments

Comments
 (0)