ngrok 0.5.0

A minimal ngrok wrapper
Documentation
# ngrok   ![Build] [![Crate]](https://crates.io/crates/ngrok) [![Docs]]https://docs.rs/ngrok/

[build]: https://github.com/nkconnor/ngrok/workflows/tests/badge.svg
[crate]: https://img.shields.io/crates/v/ngrok
[docs]: https://docs.rs/ngrok/badge.svg

A minimal and concise [`ngrok`](https://ngrok.com/) wrapper for Rust. The main use case for the library
is the ability to open public HTTP tunnels to your development server(s) for
integrations tests. TCP support, while not available, should be trivial to support.

This has been tested with Linux and assume that it does not work on Windows (contributions
welcome!).

## Getting Started

```toml
[dependencies]
ngrok = "0.5.0"
```

## Usage

```rust
use ngrok;

fn main() -> std::io::Result<()> {
    let tunnel = ngrok::builder()
        .http()
        .port(3030)
        .run()?;

    let public_url: url::Url = tunnel.http()?;

    println!("Tunnel is open at {:?}", public_url);

    Ok(())
}
```

This assumes that `ngrok` is on your path. To change this, use the `.executable()` method in the builder when
creating your tunnel.

## License

Licensed under either of <a href="LICENSE-APACHE">Apache License, Version
2.0</a> or <a href="LICENSE-MIT">MIT license</a> at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in `ngrok` by you, as defined in the Apache-2.0 license, shall be
dual licensed as above, without any additional terms or conditions.