lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README | LICENSE

commit e51682d253fb504d7ac194e2d466679e16213270
parent ffc12263db5ef0b76a2e388c805f7b6e8398095e
Author: triesap <tyson@radroots.org>
Date:   Fri, 20 Feb 2026 16:08:01 +0000

build: add `radroots-nostr` accounts crate scaffold

Diffstat:
MCargo.lock | 7+++++++
MCargo.toml | 2++
Acrates/nostr-accounts/Cargo.toml | 16++++++++++++++++
Acrates/nostr-accounts/src/error.rs | 7+++++++
Acrates/nostr-accounts/src/lib.rs | 8++++++++
5 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -2233,6 +2233,13 @@ dependencies = [ ] [[package]] +name = "radroots-nostr-accounts" +version = "0.1.0" +dependencies = [ + "thiserror 1.0.69", +] + +[[package]] name = "radroots-nostr-ndb" version = "0.1.0" dependencies = [ diff --git a/Cargo.toml b/Cargo.toml @@ -13,6 +13,7 @@ members = [ "crates/net", "crates/net-core", "crates/nostr", + "crates/nostr-accounts", "crates/nostr-ndb", "crates/nostr-runtime", "crates/runtime", @@ -45,6 +46,7 @@ radroots-events-codec = { path = "crates/events-codec", version = "0.1.0", defau radroots-events-indexed = { path = "crates/events-indexed", version = "0.1.0", default-features = false } radroots-identity = { path = "crates/identity", version = "0.1.0", default-features = false } radroots-nostr = { path = "crates/nostr", version = "0.1.0", default-features = false } +radroots-nostr-accounts = { path = "crates/nostr-accounts", version = "0.1.0", default-features = false } radroots-nostr-ndb = { path = "crates/nostr-ndb", version = "0.1.0", default-features = false } radroots-runtime = { path = "crates/runtime", version = "0.1.0", default-features = false } radroots-log = { path = "crates/log", version = "0.1.0", default-features = false } diff --git a/crates/nostr-accounts/Cargo.toml b/crates/nostr-accounts/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "radroots-nostr-accounts" +version.workspace = true +edition.workspace = true +authors = ["Radroots Authors"] +rust-version.workspace = true +license.workspace = true + +[features] +default = ["std"] +std = [] + +[dependencies] +thiserror = { workspace = true } + +[dev-dependencies] diff --git a/crates/nostr-accounts/src/error.rs b/crates/nostr-accounts/src/error.rs @@ -0,0 +1,7 @@ +use thiserror::Error; + +#[derive(Debug, Error)] +pub enum RadrootsNostrAccountsError { + #[error("not implemented")] + NotImplemented, +} diff --git a/crates/nostr-accounts/src/lib.rs b/crates/nostr-accounts/src/lib.rs @@ -0,0 +1,8 @@ +#![cfg_attr(not(feature = "std"), no_std)] +#![forbid(unsafe_code)] + +pub mod error; + +pub mod prelude { + pub use crate::error::RadrootsNostrAccountsError; +}