Fast, effective, minimalist web framework for Rust
- Safety
#[macro_use]
extern crate log;
use trek::Trek;
#[tokio::main]
async fn main() {
pretty_env_logger::init();
let app = Trek::new();
if let Err(e) = app.run("127.0.0.1:8000").await {
error!("Error: {}", e);
}
}
This project is licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Some ideas from Tide, Actix, Rocket, Warp, Phoenix, Echo, Gin. Thanks for these excellent projects.
Thanks to Brent Houghton [email protected]. He is the first owner of the trek package on Crates.io.