1 2 3 4 5 6 7 8 9 10 11 12 13 14
use water_http::{fast_build}; fn main() { start_fast_server(); } fast_build!{ port -> 8081, functions -> { GET => / => hello(context)async{ _= context.send_str("hello from fast server").await; } } }