viz-rs / trek

[Unpublished] Fast, effective, minimalist web framework for Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 houghton.brent@gmail.com. He is the first owner of the trek package on Crates.io.

About

[Unpublished] Fast, effective, minimalist web framework for Rust

License:Apache License 2.0


Languages

Language:Rust 91.6%Language:HTML 8.4%