3 releases

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

#42 in #cloudflare

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

~6–22MB
~267K SLoC