From 00efaab0d88e65d37337c69e735cb8127a22290d Mon Sep 17 00:00:00 2001 From: dawn <90008@gaze.systems> Date: Mon, 13 Apr 2026 23:17:46 +0300 Subject: [PATCH] [lib] re-export public api deps in deps --- examples/statusphere.rs | 8 ++++---- src/lib.rs | 9 +++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/examples/statusphere.rs b/examples/statusphere.rs index 5419e1d..5c9bcb5 100644 --- a/examples/statusphere.rs +++ b/examples/statusphere.rs @@ -19,12 +19,12 @@ use std::sync::Arc; use std::time::Duration; use chrono::DateTime; -use futures::StreamExt; use hydrant::FilterMode; use hydrant::config::Config; use hydrant::control::{EventStream, Hydrant, ReposControl}; -use jacquard_common::types::did::Did; -use jacquard_common::types::tid::Tid; +use hydrant::deps::futures::StreamExt; +use hydrant::deps::jacquard::types::did::Did; +use hydrant::deps::jacquard::types::tid::Tid; use scc::HashMap; const COLLECTION: &str = "xyz.statusphere.status"; @@ -159,7 +159,7 @@ async fn handle_stream(index: Arc, repos: ReposControl, mut stream: #[tokio::main] async fn main() -> miette::Result<()> { - rustls::crypto::aws_lc_rs::default_provider() + hydrant::deps::rustls::crypto::aws_lc_rs::default_provider() .install_default() .ok(); diff --git a/src/lib.rs b/src/lib.rs index 0680814..f6b237b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,3 +1,4 @@ +/// hydrant configuration pub mod config; /// hydrant main api, includes the Hydrant type for programmatic control. pub mod control; @@ -5,6 +6,14 @@ pub(crate) mod filter; pub(crate) mod pds_meta; pub mod types; +/// dependencies hydrant uses in it's public api +pub mod deps { + pub use futures; + pub use jacquard_common as jacquard; + pub use rustls; + pub use smol_str; +} + #[cfg(all(feature = "relay", feature = "indexer"))] compile_error!("can't be relay and indexer at the same time"); #[cfg(all(feature = "relay", feature = "backlinks"))] -- 2.51.2