From 36b7aa267db140789af556e181bc72f744ac3b0a Mon Sep 17 00:00:00 2001 From: jyviko <2501648+jyviko@users.noreply.github.com> Date: Wed, 21 Oct 2026 13:26:19 -0400 Subject: [PATCH] solidcraft-smlib: a build without SMLib keeps the sweeps' curve lists without a dead-code error Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_017itGh5fpMEousnZ91cYcVt --- crates/smlib/src/ffi/sweeps.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/smlib/src/ffi/sweeps.rs b/crates/smlib/src/ffi/sweeps.rs index d47a32abf..d92ad9af0 100644 --- a/crates/smlib/src/ffi/sweeps.rs +++ b/crates/smlib/src/ffi/sweeps.rs @@ -22,7 +22,8 @@ pub const SWEEP_FOLLOW: i32 = 0; pub const SWEEP_TRANSLATE: i32 = 1; /// A curve list as the C API reads it: kinds (with a NURBS curve's degree and point count) and -/// each curve's numbers. +/// each curve's numbers. Only the calls read them, which a build without SMLib does not have. +#[cfg_attr(not(feature = "native"), allow(dead_code))] pub struct List<'a> { pub kinds: &'a [i64], pub reals: &'a [f64],