Skip to main content

netscli_core/
common.rs

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