3 unstable releases
0.2.1 | Aug 14, 2022 |
---|---|
0.2.0 | Aug 14, 2022 |
0.1.0 | Aug 13, 2022 |
#4 in #ngrok
14KB
108 lines
lib_ngrok
rust crate for downloading and running an ngrok binary.
use lib_ngrok::download;
async fn download() -> Result<(), anyhow::Error> {
let ngrok_path = &Path::new("ngrok");
download::to_path(ngrok_path).await?;
}
lib.rs
:
Easily download and run an ngrok binary.
Examples
use lib_ngrok::download;
async fn download() -> Result<(), anyhow::Error> {
let ngrok_path = &Path::new("ngrok");
download::bin(ngrok_path).await?;
}
Dependencies
~0.2–15MB
~204K SLoC