1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::{thread::sleep, time::Duration}; use cloudflared::Tunnel; fn main() { let tunnel = Tunnel::builder() .url("http://localhost:8080") .build() .unwrap(); println!("URL: {}", tunnel.url()); sleep(Duration::from_secs(15)); }