Rocket-Config - Code Generation
This crate implements the code generation portions of Rocket-config. This includes procedural macros.
Procedural Macros
This crate implements the following procedural macros:
- configuration
The syntax for the configuration macro is:
Usage
You should not directly depend on this library. To use the macros,
it suffices to depend on rocket-config in Cargo.toml:
[]
= "0.0.1"
And to import the macros via #[macro_use] in the crate root:
extern crate rocket_config;
configuration!;
// ...
Or, alternatively, selectively import from the top-level scope:
extern crate rocket_config;
use configuration;
configuration!;
// ...