diff options
author | David Knaack <davidkna@users.noreply.github.com> | 2022-04-01 17:14:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-01 17:14:05 +0200 |
commit | 18ad26f98dd1bfcc01e2b092a5b6165a7b093631 (patch) | |
tree | 10f55ccdfb49f12aae9fd8b03217579683b5a62d /src/configs/rust.rs | |
parent | 418bac919087c692c8188744d951b50643c45f49 (diff) |
feat: allow printing config file schema (#3737)
Diffstat (limited to 'src/configs/rust.rs')
-rw-r--r-- | src/configs/rust.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/configs/rust.rs b/src/configs/rust.rs index 52b6d2093..b57c9d590 100644 --- a/src/configs/rust.rs +++ b/src/configs/rust.rs @@ -1,6 +1,7 @@ use serde::{Deserialize, Serialize}; #[derive(Clone, Deserialize, Serialize)] +#[cfg_attr(feature = "config-schema", derive(schemars::JsonSchema))] #[serde(default)] pub struct RustConfig<'a> { pub format: &'a str, |