mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-13 22:49:07 -05:00
6800c2e39d
This is inspired by the work of v0l (https://github.com/v0l/nostr-rs-relay/). A new trait abstracts the storage layer with an async API. Rusqlite is still used with worker threads, but this allows for Postgresql or other backends to be used. There may be bugs, this has not been rigorously tested.
49 lines
1.5 KiB
TOML
49 lines
1.5 KiB
TOML
[package]
|
|
name = "nostr-rs-relay"
|
|
version = "0.7.17"
|
|
edition = "2021"
|
|
authors = ["Greg Heartsfield <scsibug@imap.cc>"]
|
|
description = "A relay implementation for the Nostr protocol"
|
|
readme = "README.md"
|
|
homepage = "https://sr.ht/~gheartsfield/nostr-rs-relay/"
|
|
repository = "https://git.sr.ht/~gheartsfield/nostr-rs-relay"
|
|
license = "MIT"
|
|
keywords = ["nostr", "server"]
|
|
categories = ["network-programming", "web-programming"]
|
|
|
|
[dependencies]
|
|
clap = { version = "4.0.32", features = ["env", "default", "derive"]}
|
|
tracing = "0.1.36"
|
|
tracing-subscriber = "0.2.0"
|
|
tokio = { version = "1", features = ["full", "tracing", "signal"] }
|
|
console-subscriber = "0.1.8"
|
|
futures = "0.3"
|
|
futures-util = "0.3"
|
|
tokio-tungstenite = "0.17"
|
|
tungstenite = "0.17"
|
|
thiserror = "1"
|
|
uuid = { version = "1.1.2", features = ["v4"] }
|
|
config = { version = "0.12", features = ["toml"] }
|
|
bitcoin_hashes = { version = "0.10", features = ["serde"] }
|
|
secp256k1 = {version = "0.21", features = ["rand", "rand-std", "serde", "bitcoin_hashes"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = {version = "1.0", features = ["preserve_order"]}
|
|
hex = "0.4"
|
|
rusqlite = { version = "0.26", features = ["limits","bundled","modern_sqlite", "trace"]}
|
|
r2d2 = "0.8"
|
|
r2d2_sqlite = "0.19"
|
|
lazy_static = "1.4"
|
|
governor = "0.4"
|
|
nonzero_ext = "0.3"
|
|
hyper = { version="0.14", features=["client", "server","http1","http2","tcp"] }
|
|
hyper-tls = "0.5"
|
|
http = { version = "0.2" }
|
|
parse_duration = "2"
|
|
rand = "0.8"
|
|
const_format = "0.2.28"
|
|
regex = "1"
|
|
async-trait = "0.1.60"
|
|
|
|
[dev-dependencies]
|
|
anyhow = "1"
|