3 releases

0.0.3 Feb 28, 2024
0.0.2 Feb 28, 2024
0.0.1 Feb 28, 2024

#25 in #cloudflare

34 downloads per month

MIT/Apache

16KB
167 lines

cloudflared

Setup

cargo add cloudflared

Usage

fn main() {
    let tunnel = cloudflared::Tunnel::builder()
        .url("http://localhost:8080")
        .build()
        .unwrap();

    println!("URL: {}", tunnel.url());

    std::thread::sleep(std::time::Duration::from_secs(42));
}

Dependencies

~5–20MB
~264K SLoC