sdk

Radroots SDK and bindings
git clone https://radroots.dev/git/sdk.git
Log | Files | Refs | README

commit 72e638c79da1d0f420ac742bb29375ab5ccf1f2c
parent 49e68230ad6b0f607e23a976fed9339138ea2346
Author: triesap <tyson@radroots.org>
Date:   Tue, 16 Jun 2026 13:20:35 -0700

sdk: quiet no-default imports

- gate SDK facade imports to the serde_json draft and parse surface
- keep listing tag helpers available without the JSON feature
- remove no-default unused-import warnings without API changes
- verify default, no-default, and all-features check lanes

Diffstat:
Mcrates/sdk/src/client.rs | 10++++++++--
Mcrates/sdk/src/farm.rs | 1+
Mcrates/sdk/src/listing.rs | 1+
Mcrates/sdk/src/order.rs | 1+
Mcrates/sdk/src/profile.rs | 1+
5 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/crates/sdk/src/client.rs b/crates/sdk/src/client.rs @@ -20,7 +20,9 @@ use crate::config::{RadrootsSdkConfig, SdkConfigError, SdkTransportMode}; feature = "signing" ))] use crate::identity::RadrootsIdentity; -use crate::{farm, listing, order, profile}; +use crate::listing; +#[cfg(feature = "serde_json")] +use crate::{farm, order, profile}; #[cfg(any( feature = "radrootsd-client", all( @@ -30,14 +32,18 @@ use crate::{farm, listing, order, profile}; ) ))] use core::time::Duration; +use radroots_events::RadrootsNostrEvent; #[cfg(feature = "radrootsd-client")] use radroots_events::kinds::{KIND_FARM, KIND_LISTING}; +#[cfg(feature = "serde_json")] use radroots_events::{ - RadrootsNostrEvent, RadrootsNostrEventPtr, + RadrootsNostrEventPtr, ids::RadrootsEventId, profile::{RadrootsProfile, RadrootsProfileType}, }; +#[cfg(feature = "serde_json")] use radroots_events_codec::wire::WireEventParts; +#[cfg(feature = "serde_json")] use radroots_trade::listing::validation::RadrootsTradeListing as TradeListingValidateResult; type NostrTags = Vec<Vec<String>>; diff --git a/crates/sdk/src/farm.rs b/crates/sdk/src/farm.rs @@ -1,6 +1,7 @@ pub use radroots_events::farm::*; pub use radroots_events_codec::error::EventEncodeError; +#[cfg(feature = "serde_json")] use radroots_events_codec::wire::WireEventParts; #[cfg(feature = "serde_json")] diff --git a/crates/sdk/src/listing.rs b/crates/sdk/src/listing.rs @@ -9,6 +9,7 @@ use alloc::{string::String, vec::Vec}; #[cfg(feature = "std")] use std::{string::String, vec::Vec}; +#[cfg(feature = "serde_json")] use radroots_events::RadrootsNostrEvent; use radroots_events_codec::wire::WireEventParts; diff --git a/crates/sdk/src/order.rs b/crates/sdk/src/order.rs @@ -8,6 +8,7 @@ pub use radroots_events_codec::order::{ }; pub use radroots_trade::listing::validation::RadrootsTradeListing as TradeListingValidateResult; +#[cfg(feature = "serde_json")] use radroots_events::{RadrootsNostrEvent, RadrootsNostrEventPtr, ids::RadrootsEventId}; use radroots_events_codec::wire::WireEventParts; diff --git a/crates/sdk/src/profile.rs b/crates/sdk/src/profile.rs @@ -1,6 +1,7 @@ pub use radroots_events::profile::{RadrootsProfile, RadrootsProfileType}; pub use radroots_events_codec::profile::error::ProfileEncodeError; +#[cfg(feature = "serde_json")] use radroots_events_codec::wire::WireEventParts; #[cfg(feature = "serde_json")]