#tcp-server #tcp #server #http #web #async

nightly bin+lib maker_web

A simple and lightweight asynchronous TCP server crate

1 unstable release

new 0.1.0 Jan 30, 2025

#388 in HTTP server

42 downloads per month

MIT license

38KB
520 lines

MakerWeb

MakerWeb is a simple and lightweight asynchronous library for running and using a server.

github.com license crates.io Documentation

Supported Protocols

Usage examples:

Cargo.toml:

[dependencies]
maker_web = "0.1.0"

src/main.rs:

use maker_web::{HttpServer, Request, Response};
use tokio::net::TcpListener;
use http::StatusCode;

#[tokio::main]
async fn main() {
    HttpServer::launch(TcpListener::bind("127.0.0.1:80").await.unwrap(), work).await;
}

#[inline]
async fn work(_request: Request) -> Response {
    Response::from_response(StatusCode::OK, "All Good :)")
}

Future of the Library

The library will be updated as new proposals and ideas are received. I will try to post a new update every month.

Dependencies

~4–10MB
~98K SLoC