diff --git a/src/bfloat.rs b/src/bfloat.rs index 2cf5af7..ae5624a 100644 --- a/src/bfloat.rs +++ b/src/bfloat.rs @@ -36,6 +36,7 @@ pub(crate) mod convert; #[repr(transparent)] #[cfg_attr(feature = "serde", derive(Serialize))] #[cfg_attr(feature = "rkyv", derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize))] +#[cfg_attr(feature = "rkyv", archive(resolver = "Bf16Resolver"))] #[cfg_attr(feature = "bytemuck", derive(Zeroable, Pod))] #[cfg_attr(feature = "zerocopy", derive(AsBytes, FromBytes))] #[cfg_attr(kani, derive(kani::Arbitrary))] diff --git a/src/binary16.rs b/src/binary16.rs index 2075186..4bd575d 100644 --- a/src/binary16.rs +++ b/src/binary16.rs @@ -35,6 +35,7 @@ pub(crate) mod arch; #[repr(transparent)] #[cfg_attr(feature = "serde", derive(Serialize))] #[cfg_attr(feature = "rkyv", derive(rkyv::Archive, rkyv::Serialize, rkyv::Deserialize))] +#[cfg_attr(feature = "rkyv", archive(resolver = "F16Resolver"))] #[cfg_attr(feature = "bytemuck", derive(Zeroable, Pod))] #[cfg_attr(feature = "zerocopy", derive(AsBytes, FromBytes))] #[cfg_attr(kani, derive(kani::Arbitrary))]