2 releases

0.1.1 Jun 18, 2021
0.1.0 Feb 6, 2019

#733 in Network programming

Download history 49657/week @ 2024-07-28 56438/week @ 2024-08-04 63225/week @ 2024-08-11 49388/week @ 2024-08-18 61880/week @ 2024-08-25 60772/week @ 2024-09-01 54130/week @ 2024-09-08 50488/week @ 2024-09-15 54588/week @ 2024-09-22 54746/week @ 2024-09-29 55785/week @ 2024-10-06 55573/week @ 2024-10-13 63261/week @ 2024-10-20 51118/week @ 2024-10-27 62656/week @ 2024-11-03 55443/week @ 2024-11-10

234,324 downloads per month
Used in 108 crates (81 directly)

Unlicense

4KB
54 lines

Portpicker-rs - Pick a free unused port

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

Usage:

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

Dependencies

~310KB