2 releases

0.1.1 Jun 18, 2021
0.1.0 Feb 6, 2019

#635 in Network programming

Download history 52237/week @ 2024-06-18 53617/week @ 2024-06-25 44433/week @ 2024-07-02 44935/week @ 2024-07-09 55001/week @ 2024-07-16 56287/week @ 2024-07-23 48963/week @ 2024-07-30 59418/week @ 2024-08-06 58284/week @ 2024-08-13 51075/week @ 2024-08-20 61446/week @ 2024-08-27 61647/week @ 2024-09-03 52355/week @ 2024-09-10 51318/week @ 2024-09-17 53970/week @ 2024-09-24 44771/week @ 2024-10-01

214,520 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