An open API service indexing awesome lists of open source software.

https://github.com/dentosal/portpicker-rs

Pick a free unused port
https://github.com/dentosal/portpicker-rs

Last synced: over 1 year ago
JSON representation

Pick a free unused port

Awesome Lists containing this project

README

          

# Portpicker-rs - Pick a free unused port

[![Crates.io](https://img.shields.io/crates/v/portpicker)](https://crates.io/crates/portpicker)
[![Documentation](https://docs.rs/portpicker/badge.svg)](https://docs.rs/portpicker)

Picks a free port, that is unused on both TCP and UDP.

Usage:

```rust
portpicker::pick_unused_port().expect("No ports free")
```

## License

[The Unlicense](https://unlicense.org/): free to use, modify, and distribute.