From e30dfd5e5abb96cdc89b80f1d085466e55c347e0 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Wed, 3 Dec 2025 11:38:07 +0000 Subject: remove depricated audit mode label ci / production ~> isolated / shared --- grasp-audit/src/audit.rs | 12 ------------ grasp-audit/src/bin/grasp-audit.rs | 12 ++++++++---- 2 files changed, 8 insertions(+), 16 deletions(-) (limited to 'grasp-audit/src') diff --git a/grasp-audit/src/audit.rs b/grasp-audit/src/audit.rs index 713c948..0a4df42 100644 --- a/grasp-audit/src/audit.rs +++ b/grasp-audit/src/audit.rs @@ -68,18 +68,6 @@ impl AuditConfig { } } - /// Alias for isolated() - for backwards compatibility - #[deprecated(since = "0.2.0", note = "Use isolated() instead")] - pub fn ci() -> Self { - Self::isolated() - } - - /// Alias for shared() - for backwards compatibility - #[deprecated(since = "0.2.0", note = "Use shared() instead")] - pub fn production() -> Self { - Self::shared() - } - /// Create config with custom run ID pub fn with_run_id(run_id: String, mode: AuditMode) -> Self { Self { diff --git a/grasp-audit/src/bin/grasp-audit.rs b/grasp-audit/src/bin/grasp-audit.rs index 0d88bce..08a92c7 100644 --- a/grasp-audit/src/bin/grasp-audit.rs +++ b/grasp-audit/src/bin/grasp-audit.rs @@ -56,14 +56,18 @@ async fn main() -> Result<()> { spec, git_data_dir, } => { - #[allow(deprecated)] let mut config = match mode.as_str() { "shared" => AuditConfig::shared(), "isolated" => AuditConfig::isolated(), // Backwards compatibility aliases - "ci" => AuditConfig::ci(), - "production" => AuditConfig::production(), - _ => return Err(anyhow!("Invalid mode: {}. Use 'shared' or 'isolated'", mode)), + "ci" => AuditConfig::isolated(), + "production" => AuditConfig::shared(), + _ => { + return Err(anyhow!( + "Invalid mode: {}. Use 'shared' or 'isolated'", + mode + )) + } }; // Audit needs to create events to test the relay, so disable read-only mode -- cgit v1.2.3