Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Latest commit

 

History

History
79 lines (59 loc) · 2.19 KB

README.md

File metadata and controls

79 lines (59 loc) · 2.19 KB

Trek

Fast, effective, minimalist web framework for Rust

Based on Futures, Hyper, Tokio or Async-std.

CI Status

Features

  • Safety

Hello Trek

#[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);
    }
}

License

This project is licensed under either of

at your option.

Thanks

Some ideas from Tide, Actix, Rocket, Warp, Phoenix, Echo, Gin. Thanks for these excellent projects.

BTW

Thanks to Brent Houghton [email protected]. He is the first owner of the trek package on Crates.io.