//! Macros for sample configs.
// Allowed in procedural macros.
use derive_sample_config;
use TokenStream;
use ;
/// Derive `SampleConfig` for structs (with doc comments on their fields) and
/// enums.
///
/// Example:
/// ```no_compile
/// use sample_config::SampleConfig;
///
/// #[derive(Debug, SampleConfig)]
/// struct MyConfig {
/// /// My field documentation.
/// my_field: String,
/// }
///
/// let config = MyConfig { my_field: "example".to_owned() };
/// let _yaml_file_string = config.generate_sample_yaml();
/// ```