3 releases

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

#61 in #cloudflare

Download history 1/week @ 2024-12-11 1/week @ 2025-02-05 7/week @ 2025-02-12 101/week @ 2025-02-19 4/week @ 2025-02-26

113 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

~6–19MB
~266K SLoC