Skip to content

Commit

Permalink
Assert rkyv::Archive for all API commands
Browse files Browse the repository at this point in the history
  • Loading branch information
novacrazy committed Oct 11, 2024
1 parent 685b50c commit ab2ec93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/api/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,12 @@ macro_rules! command {
)?
}

#[cfg(feature = "rkyv")]
const _: () = {
const fn assert_archive<T: rkyv::Archive>() {}
assert_archive::<$name>();
};

$(
#[derive(Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schema", derive(schemars::JsonSchema))]
Expand Down

0 comments on commit ab2ec93

Please sign in to comment.