From 3decc1db1c68e5835eaf40110e496d2ad8b32bde Mon Sep 17 00:00:00 2001 From: Teakowa Date: Fri, 25 Sep 2026 20:57:27 +0800 Subject: [PATCH] feat!: mark Rule and Condition non_exhaustive Keep later source-mapping and metadata fields non-breaking after 1.0 per ADR-0013. Downstream struct-literal sites migrate to Rule::new (opy-rs#359). Refs #252 --- crates/workshop-rs/src/program.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/workshop-rs/src/program.rs b/crates/workshop-rs/src/program.rs index 04e94565..2dd34fd2 100644 --- a/crates/workshop-rs/src/program.rs +++ b/crates/workshop-rs/src/program.rs @@ -1774,6 +1774,7 @@ impl Subroutine { /// A Workshop rule with explicit conditions and a linear action stream. #[derive(Debug, Clone)] +#[non_exhaustive] pub struct Rule { pub name: String, pub disabled: bool, @@ -1806,6 +1807,7 @@ impl Rule { /// A rule condition. Conditions remain distinct from general value expressions. #[derive(Debug, Clone)] +#[non_exhaustive] pub struct Condition { pub value: Value, pub disabled: bool,