cloudflared 0.0.3

Cloudflare Tunnel client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{thread::sleep, time::Duration};

use cloudflared::Tunnel;

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

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

    loop {
        sleep(Duration::from_millis(100));
    }
}