| Crates.io | rust_tcp_sever |
| lib.rs | rust_tcp_sever |
| version | 0.3.0 |
| created_at | 2024-07-19 10:33:58.084793+00 |
| updated_at | 2025-01-19 05:34:46.229318+00 |
| description | A simple and lightweight asynchronous TCP server crate. |
| homepage | |
| repository | https://github.ru/Amakesasha/Rust-TcpSever |
| max_upload_size | |
| id | 1308524 |
| size | 50,574 |
Rust TcpSever is a simple and lightweight asynchronous library for running and using a server.
[dependencies]
rust_tcp_sever = "0.3.0"
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 :)")
}
The library will be updated as new proposals and ideas are received. I will try to post a new update every month.