1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pub use VariantsProcessor;
/// `vconfig` context used in rocket applications.
pub use VConfigContext;
/// Re-export `vconfig::de::from_file` as `de_from_file`.
pub use from_file as de_from_file;
/// Re-export `vconfig_codegen::rocket_variant_config` as `vconfig`.
///
/// Example usage:
///
/// ```text
/// #[vconfig("my_config")] // my_config is the name of the configuration file without extension
/// // or #[vconfig(file = "[path]/my_config.toml")]
/// #[derive(Debug)]
/// struct MyConfig {
/// field1: String,
/// field2: i32,
/// }
/// ```
///
/// # `vconfig_codegen::rocket_variant_config`
pub use rocket_variant_config as vconfig;
/// Re-export `vconfig::default::DefaultVariants` as `DefaultVariants`.
pub use DefaultVariants;
/// Re-export `vconfig::traits::Variants` as `Variants`.
pub use Variants;
/// Re-export `serde`.