From 618475b1596637b3df2f232a0ac1eb4075b5c4f8 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Wed, 28 Oct 2026 11:21:52 +0100 Subject: [PATCH] connector-contract-v3: the server-side carriage functions exist with the daemon feature c23d913 does not build with default features under clippy -D warnings: the result encoder and invocation decoder are server-side only. Co-Authored-By: Claude Opus 5.5 --- crates/model-connector/src/envelope.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/model-connector/src/envelope.rs b/crates/model-connector/src/envelope.rs index 0ece953..e77b212 100644 --- a/crates/model-connector/src/envelope.rs +++ b/crates/model-connector/src/envelope.rs @@ -79,6 +79,7 @@ pub(crate) fn encode_invocation_frame( /// The CultNet frame a result travels in: a `cultnet.operation_response.v0` /// with status `ok`, otherwise shaped like the invocation's. +#[cfg(any(feature = "daemon", test))] pub(crate) fn encode_result_frame(envelope: &TransportEnvelope) -> Result, ServiceError> { carriage_bytes(&CultNetMessage::OperationResponse { message_id: envelope.request_id.clone(), @@ -124,6 +125,7 @@ fn read_carriage(bytes: &[u8]) -> Result { .map_err(|_| ServiceError::Carriage) } +#[cfg(any(feature = "daemon", test))] pub(crate) fn decode_invocation_frame(bytes: &[u8]) -> Result { match read_carriage(bytes)? { CultNetMessage::OperationRequest {