Registry / networking / actix-server

actix-server

JSON →
library2.6.0rscratesunverified

General purpose TCP server built for the Actix ecosystem.

# Cargo.toml [dependencies] actix-server = "2.6.0"
INSTALL
IMPORT
SIG · ACTIX-SERVER
A
actix-server
networkingrustv2.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Server
use actix_server::Server;

Starts a TCP server on localhost:8080.

use actix_server::Server; fn main() { let server = Server::build() .bind("echo", ("127.0.0.1", 8080), || { |stream| async move { // handle stream } }) .unwrap() .run(); println!("Server running on port 8080"); }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio or actix-rt) to run.
fix
Add actix-rt as a dependency and use #[actix_rt::main] or similar.
affects: >=2.0.0
Upgrade
Version history
2.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
53 hits · last 30 days
node
46
OpenAI (training)
1
Resources
actix-server — cargo add actix-server · libregistry