Registry / networking / port-selector

port-selector

JSON →
library0.1.7rscratesunverified

port-selector is a rust library that provides functions to port availability checking, port filtering based on conditions and occupy specified ports.

# Cargo.toml [dependencies] port-selector = "0.1.7"
INSTALL
IMPORT
SIG · PORT-SELECTOR
P
port-selector
networkingrustv0.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PortSelector
use port_selector::PortSelector;

Select an available port from a range.

use port_selector::PortSelector; fn main() { let selector = PortSelector::new(); let port = selector.select_available(8080..8090).unwrap(); println!("Selected port: {}", port); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.7latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
port-selector — cargo add port-selector · libregistry