mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-11 11:12:06 +00:00
Document segments and debug env var in codegen.
This commit is contained in:
parent
7d97bf04ea
commit
b6e3cb6c05
@ -39,7 +39,7 @@
|
|||||||
//! IDENT := Valid identifier, as defined by Rust
|
//! IDENT := Valid identifier, as defined by Rust
|
||||||
//!
|
//!
|
||||||
//! URI_SEG := Valid HTTP URI Segment
|
//! URI_SEG := Valid HTTP URI Segment
|
||||||
//! DYNAMIC_PARAM := '<' IDENT '>' (string literal)
|
//! DYNAMIC_PARAM := '<' IDENT '..'? '>' (string literal)
|
||||||
//! </pre>
|
//! </pre>
|
||||||
//!
|
//!
|
||||||
//! Note that the **route** attribute takes a method as its first argument,
|
//! Note that the **route** attribute takes a method as its first argument,
|
||||||
@ -78,6 +78,16 @@
|
|||||||
//! PATH := a path, as defined by Rust
|
//! PATH := a path, as defined by Rust
|
||||||
//! </pre>
|
//! </pre>
|
||||||
//!
|
//!
|
||||||
|
//! # Debugging Codegen
|
||||||
|
//!
|
||||||
|
//! When the `ROCKET_CODEGEN_DEBUG` environment variable is set, this crate logs
|
||||||
|
//! the items it has generated to the console at compile-time. For example, you
|
||||||
|
//! might run the following to build a Rocket application with codegen logging
|
||||||
|
//! enabled:
|
||||||
|
//!
|
||||||
|
//! ```
|
||||||
|
//! ROCKET_CODEGEN_DEBUG=1 cargo build
|
||||||
|
//! ```
|
||||||
|
|
||||||
#![crate_type = "dylib"]
|
#![crate_type = "dylib"]
|
||||||
#![feature(quote, concat_idents, plugin_registrar, rustc_private, unicode)]
|
#![feature(quote, concat_idents, plugin_registrar, rustc_private, unicode)]
|
||||||
|
Loading…
Reference in New Issue
Block a user