2 releases

0.1.1 Jun 18, 2021
0.1.0 Feb 6, 2019

#707 in Network programming

Download history 61714/week @ 2024-08-24 60222/week @ 2024-08-31 54831/week @ 2024-09-07 50641/week @ 2024-09-14 54479/week @ 2024-09-21 53304/week @ 2024-09-28 57176/week @ 2024-10-05 56011/week @ 2024-10-12 62552/week @ 2024-10-19 51970/week @ 2024-10-26 61633/week @ 2024-11-02 56467/week @ 2024-11-09 55443/week @ 2024-11-16 50931/week @ 2024-11-23 50171/week @ 2024-11-30 50598/week @ 2024-12-07

216,422 downloads per month
Used in 110 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

~315KB