fix some unused_crate_dependencies lint warns

Signed-off-by: June Strawberry <june@vern.cc>
This commit is contained in:
June Strawberry
2026-01-15 17:01:38 -05:00
parent 1b68588b84
commit 2f4d3c2851
9 changed files with 234 additions and 198 deletions

418
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -24,6 +24,8 @@ pub(crate) use crate::{context::Context, utils::get_room_info};
pub(crate) const PAGE_SIZE: usize = 100;
use log as _;
tuwunel_core::mod_ctor! {}
tuwunel_core::mod_dtor! {}
tuwunel_core::rustc_flags_capture! {}

View File

@@ -74,7 +74,6 @@ zstd_compression = [
]
[dependencies]
async-trait.workspace = true
axum-client-ip.workspace = true
axum-extra.workspace = true
axum.workspace = true
@@ -87,7 +86,7 @@ hmac.workspace = true
http.workspace = true
http-body-util.workspace = true
hyper.workspace = true
ipaddress.workspace = true
itertools.workspace = true
log.workspace = true
rand.workspace = true
reqwest.workspace = true

View File

@@ -5,6 +5,8 @@ pub mod client;
pub mod router;
pub mod server;
use log as _;
pub(crate) use self::router::{Ruma, RumaResponse, State};
tuwunel_core::mod_ctor! {}

View File

@@ -36,6 +36,8 @@ rustc_flags_capture! {}
#[cfg(any(not(tuwunel_mods), not(feature = "tuwunel_mods")))]
pub mod mods {
use log as _;
#[macro_export]
macro_rules! mod_ctor {
() => {};

View File

@@ -23,6 +23,7 @@ pub(crate) mod util;
use std::{ops::Index, sync::Arc};
use log as _;
use tuwunel_core::{Result, Server, err};
pub use self::{

View File

@@ -11,6 +11,7 @@ pub mod signals;
use std::sync::Arc;
use log as _;
use tuwunel_core::{Result, debug_info, error, mod_ctor, mod_dtor, rustc_flags_capture};
use tuwunel_service::Services;

View File

@@ -9,6 +9,7 @@ mod serve;
use std::{panic::AssertUnwindSafe, pin::Pin, sync::Arc};
use futures::{Future, FutureExt, TryFutureExt};
use log as _;
use tuwunel_core::{Error, Result, Server};
use tuwunel_service::Services;

View File

@@ -37,6 +37,8 @@ pub(crate) use service::{Args, Service};
pub(crate) type SelfServices = std::sync::Arc<OnceServices>;
use log as _;
pub use crate::services::Services;
tuwunel_core::mod_ctor! {}