Registry / web-framework / rocket

rocket

JSON →
library0.5.1rscratesunverified

A web framework for Rust with a focus on usability, security, extensibility, and speed.

# Cargo.toml [dependencies] rocket = "0.5.1"
INSTALL
IMPORT
SIG · ROCKET
R
rocket
web-frameworkrustv0.5.1
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.

Rocket
use rocket::Rocket;

A minimal Rocket web server with a single route.

#[macro_use] extern crate rocket; #[get("/")] fn index() -> &'static str { "Hello, world!" } #[launch] fn rocket() -> _ { rocket::build().mount("/", routes![index]) }
Debug
Known issues
gotchaRocket requires nightly Rust for its proc-macro features.
fix
Use `rustup default nightly` or set `RUSTUP_TOOLCHAIN=nightly`.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rocket — cargo add rocket · libregistry