rocket-config-codegen 0.0.2

Procedural macros for the rocket-config library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
extern crate rocket_config;
#[macro_use] extern crate rocket_config_codegen;

configuration!("diesel");

// This just checks that the DieselConfiguration struct exists
#[test]
fn test_valid() {
    let _diesel = DieselConfiguration(
        rocket_config::Configuration::new(
            std::path::Path::new("/tmp/diesel.json")
        )
    );
}