From ab2ec932ce9de02f219fa66213124264c29d32b3 Mon Sep 17 00:00:00 2001 From: novacrazy Date: Fri, 11 Oct 2024 01:21:21 -0500 Subject: [PATCH] Assert rkyv::Archive for all API commands --- src/api/command.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/api/command.rs b/src/api/command.rs index ce0f377a0..646c24674 100644 --- a/src/api/command.rs +++ b/src/api/command.rs @@ -534,6 +534,12 @@ macro_rules! command { )? } + #[cfg(feature = "rkyv")] + const _: () = { + const fn assert_archive() {} + assert_archive::<$name>(); + }; + $( #[derive(Debug, Serialize, Deserialize)] #[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]