refactor: simplify lib.rs and update feature gating for cmd modules
This commit is contained in:
3 files changed
+7
-23
No files matched your search
@@ -1,3 +1,7 @@
|
|||||||
|
#[cfg(feature = "client")]
|
||||||
pub mod client;
|
pub mod client;
|
||||||
#[cfg(feature = "tui")]
|
#[cfg(feature = "tui")]
|
||||||
pub mod tui;
|
pub mod tui;
|
||||||
|
|
||||||
|
// Future command applets, such as a server applet, belong here behind their
|
||||||
|
// own feature gate.
|
||||||
@@ -1,27 +1,6 @@
|
|||||||
#![forbid(unsafe_code)]
|
#![forbid(unsafe_code)]
|
||||||
|
|
||||||
pub mod applet;
|
pub mod applet;
|
||||||
pub mod signal;
|
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
|
||||||
pub mod shared;
|
|
||||||
|
|
||||||
#[cfg(feature = "client")]
|
|
||||||
pub mod cmd;
|
pub mod cmd;
|
||||||
|
pub mod shared;
|
||||||
#[cfg(feature = "stats")]
|
pub mod signal;
|
||||||
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;
|
|
||||||
@@ -1 +1,2 @@
|
|||||||
|
#[cfg(feature = "client")]
|
||||||
pub mod client;
|
pub mod client;
|
||||||
Reference in new issue
Block a user