Registry / web-framework / actori-web

actori-web

JSON →
library2.0.0rscratesunverified

A simple, pragmatic and extremely fast web framework for Rust, built on the Actori actor system.

# Cargo.toml [dependencies] actori-web = "2.0.0"
INSTALL
IMPORT
SIG · ACTORI-WEB
A
actori-web
web-frameworkrustv2.0.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.

App
use actori_web::App;

Create a simple HTTP server that responds with 'Hello, world!' on the root path.

use actori_web::{App, HttpServer, web}; async fn index() -> &'static str { "Hello, world!" } #[actori_web::main] async fn main() -> std::io::Result<()> { HttpServer::new(|| App::new().route("/", web::get().to(index))) .bind("127.0.0.1:8080")? .run() .await }
Debug
Known issues
gotchaRequires an async runtime (tokio or async-std) to be specified via feature flags.
fix
Add `features = ["tokio"]` or `features = ["async-std"]` to Cargo.toml dependency.
affects: >=2.0.0
Upgrade
Version history
2.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
35 hits · last 30 days
node
28
OpenAI (training)
2
Resources
actori-web — cargo add actori-web · libregistry