use dav_server::warp::dav_dir; use std::net::SocketAddr; #[tokio::main] async fn main() { env_logger::init(); let dir = "/tmp"; let addr: SocketAddr = ([127, 0, 0, 1], 4918).into(); println!("warp example: listening on {:?} serving {}", addr, dir); let warpdav = dav_dir(dir, true, true); warp::serve(warpdav).run(addr).await; }