refactor: simplify lib.rs and update feature gating for cmd modules

This commit is contained in:
Nils Andreas Svee committed 2026-06-10 00:41:03 +07:00
1 parent 5de1bf7343
commit f41fd4a8e7
3 files changed
+7 -23

No files matched your search

+4
View File
@@ -1,3 +1,7 @@
#[cfg(feature = "client")]
pub mod client;
#[cfg(feature = "tui")]
pub mod tui;
// Future command applets, such as a server applet, belong here behind their
// own feature gate.
+2 -23
View File
@@ -1,27 +1,6 @@
#![forbid(unsafe_code)]
pub mod applet;
pub mod signal;
#[cfg(feature = "client")]
pub mod shared;
#[cfg(feature = "client")]
pub mod cmd;
#[cfg(feature = "stats")]
pub use cmd::client::summary;
#[cfg(feature = "client")]
pub use cmd::client::{
format_event, format_human_event, format_human_event_with_options, ClientArgs, HumanEventStats,
HumanIpdvPair, HumanOutputOptions, OutputMode,
};
#[cfg(feature = "tui")]
pub use cmd::tui::TuiArgs;
#[cfg(feature = "client")]
pub use shared::client::{
parse_dscp, parse_duration, parse_length, parse_server_fill, parse_test_duration, parse_ttl,
ClockArg, CommonClientArgs, ReceivedStatsArg, TimestampArg,
};
#[cfg(feature = "client")]
pub type CliArgs = ClientArgs;
pub mod shared;
pub mod signal;
+1
View File
@@ -1 +1,2 @@
#[cfg(feature = "client")]
pub mod client;