Skip to content

Commit

Permalink
redb: init
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Kishimoto <[email protected]>
  • Loading branch information
yukibtc committed Dec 12, 2024
1 parent f21ffbd commit 3cef055
Show file tree
Hide file tree
Showing 12 changed files with 2,375 additions and 1 deletion.
23 changes: 22 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ nostr-database = { version = "0.37", path = "./crates/nostr-database", default-f
nostr-indexeddb = { version = "0.37", path = "./crates/nostr-indexeddb", default-features = false }
nostr-lmdb = { version = "0.37", path = "./crates/nostr-lmdb", default-features = false }
nostr-ndb = { version = "0.37", path = "./crates/nostr-ndb", default-features = false }
nostr-redb = { version = "0.37", path = "./crates/nostr-redb", default-features = false }
nostr-relay-builder = { version = "0.37", path = "./crates/nostr-relay-builder", default-features = false }
nostr-relay-pool = { version = "0.37", path = "./crates/nostr-relay-pool", default-features = false }
nostr-sdk = { version = "0.37", path = "./crates/nostr-sdk", default-features = false }
Expand Down
23 changes: 23 additions & 0 deletions crates/nostr-redb/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[package]
name = "nostr-redb"
version = "0.37.0"
edition = "2021"
description = "redb storage backend for nostr apps"
authors.workspace = true
homepage.workspace = true
repository.workspace = true
license.workspace = true
readme = "README.md"
rust-version.workspace = true
keywords = ["nostr", "database", "lmdb"]

[dependencies]
async-utility.workspace = true
redb = { version = "2.3", default-features = false }
nostr = { workspace = true, features = ["std"] }
nostr-database = { workspace = true, features = ["flatbuf"] }
tokio = { workspace = true, features = ["sync"] }

[dev-dependencies]
tempfile = "3"
tokio = { workspace = true, features = ["macros", "rt-multi-thread"] }
15 changes: 15 additions & 0 deletions crates/nostr-redb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Nostr LMDB

LMDB storage backend for nostr apps

## State

**This library is in an ALPHA state**, things that are implemented generally work but the API will change in breaking ways.

## Donations

`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).

## License

This project is distributed under the MIT software license - see the [LICENSE](../../LICENSE) file for details
Loading

0 comments on commit 3cef055

Please sign in to comment.