Skip to main content

netscli_core/
common.rs

1mod connect;
2mod constants;
3mod network;
4mod ports;
5// Windows-only. On Unix `exec` searches PATH alone, so there is nothing to
6// resolve, and a non-Windows variant is dead code that `-D warnings`
7// rejects -- which is exactly how CI caught the first attempt at this.
8#[cfg(windows)]
9mod system_tools;
10mod terminal;
11
12pub(crate) use connect::connect as tcp_connect;
13pub use constants::{
14    DEFAULT_CONCURRENCY, DEFAULT_DNS_TIMEOUT_MS, DEFAULT_PING_TIMEOUT_MS, DEFAULT_PORTS,
15    DEFAULT_SCAN_TIMEOUT_MS, DEFAULT_SUBNET, MAX_MDNS_TIMEOUT_MS, MAX_PING_COUNT,
16};
17pub use network::{
18    default_ipv4_subnet_string, detect_default_ipv4_addr, detect_default_ipv4_subnet,
19};
20pub use ports::{
21    default_ports, parse_ports, parse_ports_checked, validate_ports, MAX_PORTS_PER_SCAN,
22};
23#[cfg(windows)]
24pub(crate) use system_tools::system_tool;
25pub use terminal::sanitize_for_terminal;