mirror of
https://github.com/OMGeeky/confique.git
synced 2026-02-23 15:38:30 +01:00
Add derive_for_all global attribute (defaulting to Debug)
In most cases, I expect that users just want all structs to derive `Debug` or maybe also `Clone`.
This commit is contained in:
@@ -3,7 +3,8 @@ mod config {
|
||||
use std::path::PathBuf;
|
||||
|
||||
confique::config! {
|
||||
#[derive(Debug, Clone)]
|
||||
#![derive_for_all(Debug, Clone)]
|
||||
|
||||
log: {
|
||||
/// Determines how many messages are logged. Log messages below
|
||||
/// this level are not emitted. Possible values: "trace", "debug",
|
||||
|
||||
Reference in New Issue
Block a user