https://github.com/softprops/porthole
tiny rust crate for resolving the next available network port
https://github.com/softprops/porthole
Last synced: about 1 year ago
JSON representation
tiny rust crate for resolving the next available network port
- Host: GitHub
- URL: https://github.com/softprops/porthole
- Owner: softprops
- License: mit
- Created: 2015-06-13T05:49:32.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-13T00:49:09.000Z (almost 11 years ago)
- Last Synced: 2025-03-17T11:59:59.343Z (over 1 year ago)
- Language: Rust
- Size: 730 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# porthole
[](https://travis-ci.org/softprops/porthole)
> A tiny rust crate for resolving the next available network port
## docs
Find them [here](http://softprops.github.io/porthole)
## install
Add the following to your `Cargo.toml`
```toml
[dependencies]
porthole = "0.1.0"
```
# usage
```rust
use porthole;
fn main() {
let port = porthole::open().unwrap();
println!("next open port {:?}", port);
}
```
Doug Tangren (softprops) 2015