Registry / web-framework / poem
library3.1.12rscratesunverified

Poem is a full-featured and easy-to-use web framework with the Rust programming language.

# Cargo.toml [dependencies] poem = "3.1.12"
INSTALL
IMPORT
SIG · POEM
P
poem
web-frameworkrustv3.1.12
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.

Route
use poem::Route;

Create a simple web server with Poem

use poem::{get, Route, Server}; #[tokio::main] async fn main() -> Result<(), std::io::Error> { let app = Route::new().at("/", get(|_| async { "Hello, World!" })); Server::bind("127.0.0.1:3000").run(app).await }
Debug
Known issues
gotchaRequires tokio runtime for async execution
fix
Add tokio as a dependency and use #[tokio::main]
affects: >=3.0.0
Upgrade
Version history
3.1.12latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
Amazon
1
Resources
poem — cargo add poem · libregistry