diff options
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index cd43b97..bb60cc7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -133,6 +133,11 @@ pub struct Config { pub dispatch_tick_secs: u64, } +/// Test-tier only, and already half-gated: the `hooks` field that holds one and +/// the `Default` line that fills it are both behind `test-support`, so without +/// the gate below this type compiles into a release binary that can never +/// construct, read, or deserialize it. +#[cfg(feature = "test-support")] #[derive(Debug, Clone, Default, Serialize, Deserialize)] #[serde(default)] pub struct TestHooks { @@ -145,6 +150,7 @@ pub struct TestHooks { pub shim_plant_link: Option<String>, } +#[cfg(feature = "test-support")] impl TestHooks { pub fn is_empty(&self) -> bool { self.path_prepend.is_none() |
