solana_program/
borsh0_10.rs#![allow(clippy::arithmetic_side_effects)]
use {
crate::borsh::{
impl_get_instance_packed_len, impl_get_packed_len_v0, impl_try_from_slice_unchecked,
},
borsh0_10::maybestd::io,
};
impl_get_packed_len_v0!(
borsh0_10,
#[deprecated(
since = "1.18.0",
note = "Please upgrade to Borsh 1.X and use `borsh1::get_packed_len` instead"
)]
);
impl_try_from_slice_unchecked!(
borsh0_10,
io,
#[deprecated(
since = "1.18.0",
note = "Please upgrade to Borsh 1.X and use `borsh1::try_from_slice_unchecked` instead"
)]
);
impl_get_instance_packed_len!(
borsh0_10,
io,
#[deprecated(
since = "1.18.0",
note = "Please upgrade to Borsh 1.X and use `borsh1::get_instance_packed_len` instead"
)]
);
#[cfg(test)]
#[allow(deprecated)]
mod tests {
use {crate::borsh::impl_tests, borsh0_10::maybestd::io};
impl_tests!(borsh0_10, io);
}