lib

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

commit 6afcd151727c91e0c61586e6d92084f337630ec4
parent 7068bd8bcf3a32ce55e7b2734fc62e56fd2d078e
Author: triesap <tyson@radroots.org>
Date:   Sun, 22 Feb 2026 02:41:13 +0000

identity: format `radroots-identity` imports and test reexports



- run rustfmt for the identity crate manifest scope
- normalize import ordering in identity runtime and test modules
- keep identity key and profile logic unchanged with formatting-only edits
- preserve identity crate test behavior and feature gates after formatting

Diffstat:
Mcrates/identity/src/identity.rs | 6+++---
Mcrates/identity/tests/identity.rs | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/crates/identity/src/identity.rs b/crates/identity/src/identity.rs @@ -2,18 +2,18 @@ use crate::error::IdentityError; use core::convert::Infallible; use core::fmt; use nostr::{Keys, SecretKey}; -use serde::{Deserialize, Serialize}; #[cfg(feature = "profile")] use radroots_events::profile::RadrootsProfile; +use serde::{Deserialize, Serialize}; #[cfg(not(feature = "std"))] use alloc::string::String; #[cfg(all(feature = "std", feature = "json-file"))] use radroots_runtime::JsonFile; -#[cfg(feature = "std")] -use std::{fs, path::Path}; #[cfg(all(feature = "std", feature = "json-file"))] use std::path::PathBuf; +#[cfg(feature = "std")] +use std::{fs, path::Path}; pub const DEFAULT_IDENTITY_PATH: &str = "identity.json"; diff --git a/crates/identity/tests/identity.rs b/crates/identity/tests/identity.rs @@ -1,7 +1,7 @@ use radroots_events::profile::RadrootsProfile; use radroots_identity::{ - IdentityError, RadrootsIdentity, RadrootsIdentityId, RadrootsIdentityProfile, - RadrootsIdentityPublic, RadrootsIdentitySecretKeyFormat, DEFAULT_IDENTITY_PATH, + DEFAULT_IDENTITY_PATH, IdentityError, RadrootsIdentity, RadrootsIdentityId, + RadrootsIdentityProfile, RadrootsIdentityPublic, RadrootsIdentitySecretKeyFormat, }; use std::path::PathBuf;