diff options
Diffstat (limited to 'crates')
| -rw-r--r-- | crates/utils/cfg_file/Cargo.toml | 5 | ||||
| -rw-r--r-- | crates/utils/cfg_file/src/lib.rs | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/crates/utils/cfg_file/Cargo.toml b/crates/utils/cfg_file/Cargo.toml index 9d9a6b8..c3bb4a4 100644 --- a/crates/utils/cfg_file/Cargo.toml +++ b/crates/utils/cfg_file/Cargo.toml @@ -3,7 +3,12 @@ name = "cfg_file" edition = "2024" version.workspace = true +[features] +default = ["derive"] +derive = [] + [dependencies] +cfg_file_derive = { path = "cfg_file_derive" } # Async tokio = { version = "1.46.1", features = ["full"] } diff --git a/crates/utils/cfg_file/src/lib.rs b/crates/utils/cfg_file/src/lib.rs index a105933..945c3fd 100644 --- a/crates/utils/cfg_file/src/lib.rs +++ b/crates/utils/cfg_file/src/lib.rs @@ -1 +1,7 @@ +#[cfg(feature = "derive")] +extern crate cfg_file_derive; + +#[cfg(feature = "derive")] +pub use cfg_file_derive::*; + pub mod config;
\ No newline at end of file |
