Registry / web-framework / rocket-codegen

rocket-codegen

JSON →
library0.5.1rscratesunverified

Procedural macros for the Rocket web framework, enabling route attributes and more.

# Cargo.toml [dependencies] rocket_codegen = "0.5.1"
INSTALL
IMPORT
SIG · ROCKET-CODEGEN
R
rocket-codegen
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_codegen
use rocket_codegen::*;

Define a simple GET route using Rocket's codegen macros.

use rocket_codegen::*; #[get("/")] fn index() -> &'static str { "Hello, world!" }
Debug
Known issues
gotchaRequires nightly Rust for procedural macros.
fix
Switch to stable Rust and use Rocket's stable API if available.
affects: >=0.5.0
Upgrade
Version history
0.5.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
rocket-codegen — cargo add rocket-codegen · libregistry