solana_borsh/
v1.rs

1#![allow(clippy::arithmetic_side_effects)]
2//! Utilities for the [borsh] serialization format, version 1.
3//!
4//! [borsh]: https://borsh.io/
5use {
6    crate::macros::{
7        impl_get_instance_packed_len, impl_get_packed_len_v1, impl_try_from_slice_unchecked,
8    },
9    borsh::io,
10};
11
12impl_get_packed_len_v1!(borsh);
13impl_try_from_slice_unchecked!(borsh, io);
14impl_get_instance_packed_len!(borsh, io);
15
16#[cfg(test)]
17mod tests {
18    use {crate::macros::impl_tests, borsh::io};
19    impl_tests!(borsh, io);
20}