A minimal ngrok wrapper for Rust. Only tested on Linux, assuming it does not work with Windows (contributions welcome!).
toml
[dependencies]
ngrok = "0.2.0"
```rust use ngrok;
fn main() -> std::io::Result<()> { let ngrok = ngrok::builder() .http() .port(3030) .run()?;
let tunnel: url::Url = ngrok.tunnel()?.http();
println!("Tunnel is open at {:?}", tunnel);
Ok(())
} ```
Licensed under either of Apache License, Version 2.0 or MIT license 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.