| Crates.io | portpicker |
| lib.rs | portpicker |
| version | 0.1.1 |
| created_at | 2019-02-06 00:51:45.506737+00 |
| updated_at | 2021-06-18 12:39:03.160241+00 |
| description | Pick a free unused port |
| homepage | |
| repository | https://github.com/Dentosal/portpicker-rs |
| max_upload_size | |
| id | 112995 |
| size | 5,084 |
Picks a free port, that is unused on both TCP and UDP.
Usage:
portpicker::pick_unused_port().expect("No ports free")