Skip to content

Commit 3cef055

Browse files
committed
redb: init
Signed-off-by: Yuki Kishimoto <[email protected]>
1 parent f21ffbd commit 3cef055

File tree

12 files changed

+2375
-1
lines changed

12 files changed

+2375
-1
lines changed

Cargo.lock

+22-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ nostr-database = { version = "0.37", path = "./crates/nostr-database", default-f
3333
nostr-indexeddb = { version = "0.37", path = "./crates/nostr-indexeddb", default-features = false }
3434
nostr-lmdb = { version = "0.37", path = "./crates/nostr-lmdb", default-features = false }
3535
nostr-ndb = { version = "0.37", path = "./crates/nostr-ndb", default-features = false }
36+
nostr-redb = { version = "0.37", path = "./crates/nostr-redb", default-features = false }
3637
nostr-relay-builder = { version = "0.37", path = "./crates/nostr-relay-builder", default-features = false }
3738
nostr-relay-pool = { version = "0.37", path = "./crates/nostr-relay-pool", default-features = false }
3839
nostr-sdk = { version = "0.37", path = "./crates/nostr-sdk", default-features = false }

crates/nostr-redb/Cargo.toml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[package]
2+
name = "nostr-redb"
3+
version = "0.37.0"
4+
edition = "2021"
5+
description = "redb storage backend for nostr apps"
6+
authors.workspace = true
7+
homepage.workspace = true
8+
repository.workspace = true
9+
license.workspace = true
10+
readme = "README.md"
11+
rust-version.workspace = true
12+
keywords = ["nostr", "database", "lmdb"]
13+
14+
[dependencies]
15+
async-utility.workspace = true
16+
redb = { version = "2.3", default-features = false }
17+
nostr = { workspace = true, features = ["std"] }
18+
nostr-database = { workspace = true, features = ["flatbuf"] }
19+
tokio = { workspace = true, features = ["sync"] }
20+
21+
[dev-dependencies]
22+
tempfile = "3"
23+
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }

crates/nostr-redb/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Nostr LMDB
2+
3+
LMDB storage backend for nostr apps
4+
5+
## State
6+
7+
**This library is in an ALPHA state**, things that are implemented generally work but the API will change in breaking ways.
8+
9+
## Donations
10+
11+
`rust-nostr` is free and open-source. This means we do not earn any revenue by selling it. Instead, we rely on your financial support. If you actively use any of the `rust-nostr` libs/software/services, then please [donate](https://rust-nostr.org/donate).
12+
13+
## License
14+
15+
This project is distributed under the MIT software license - see the [LICENSE](../../LICENSE) file for details

0 commit comments

Comments
 (0)