rust_tcp_sever

Crates.iorust_tcp_sever
lib.rsrust_tcp_sever
version0.3.0
created_at2024-07-19 10:33:58.084793+00
updated_at2025-01-19 05:34:46.229318+00
descriptionA simple and lightweight asynchronous TCP server crate.
homepage
repositoryhttps://github.ru/Amakesasha/Rust-TcpSever
max_upload_size
id1308524
size50,574
AmakeSasha (Amakesasha)

documentation

README

Rust TcpSever

Rust TcpSever 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]
rust_tcp_sever = "0.3.0"

src/main.rs:

use rust_tcp_sever::*;

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

async fn work(_request: Request) -> Response {
    Response::from_response("200 OK", "All good work :)")
}

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.

Commit count: 0

cargo fmt