lib

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

commit 1fb597064489e6b5f8655506196e407b077f103f
parent 79964de9a20412169666d1e492e1e3e200b1ee9c
Author: triesap <tyson@radroots.org>
Date:   Tue, 23 Jun 2026 09:15:57 +0000

relay_transport: gate client outcome import

- move the publish outcome-kind import behind the client feature
- keep lightweight std-only relay transport checks warning-free
- preserve direct relay publish behavior under the client feature
- validate formatting and std-only cargo check

Diffstat:
Mcrates/relay_transport/src/publish.rs | 7+++----
1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/crates/relay_transport/src/publish.rs b/crates/relay_transport/src/publish.rs @@ -1,9 +1,6 @@ #![forbid(unsafe_code)] -use crate::{ - RadrootsRelayOutcome, RadrootsRelayOutcomeKind, RadrootsRelayTargetSet, - RadrootsRelayTransportError, -}; +use crate::{RadrootsRelayOutcome, RadrootsRelayTargetSet, RadrootsRelayTransportError}; use futures::future::BoxFuture; use radroots_events::draft::RadrootsSignedNostrEvent; use serde::{Deserialize, Serialize}; @@ -11,6 +8,8 @@ use std::collections::BTreeMap; use std::sync::{Arc, Mutex, PoisonError}; #[cfg(feature = "client")] +use crate::RadrootsRelayOutcomeKind; +#[cfg(feature = "client")] use nostr::JsonUtil; #[cfg(feature = "client")] use radroots_nostr::prelude::{RadrootsNostrClient, RadrootsNostrEvent};