Skip to main content

vitaminc_aead_frame/
lib.rs

1#![deny(clippy::unwrap_used, clippy::todo, unsafe_code, unused_imports)]
2#![doc = include_str!("../README.md")]
3pub mod transport;
4
5#[cfg(feature = "serde")]
6pub mod serde;
7
8#[cfg(feature = "serde")]
9pub mod storage;
10
11pub use transport::{decode_ciphertext, encode_ciphertext, CodecError};
12/// The frame: a value as transport bytes, and back. These live in
13/// `vitaminc-aead` next to the leaf codec they share, and are re-exported
14/// here so a binding that depends on this crate has the whole transport.
15pub use vitaminc_aead::frame::{
16    FrameError, FrameWriteError, ARRAY, MAX_DEPTH, OBJECT, PASSTHROUGH,
17};
18/// The leaf tag table, which lives with the leaf codec in `vitaminc-aead`.
19pub use vitaminc_aead::tags;
20pub use vitaminc_aead::{to_frame, Frame, FrameWriter, PassthroughFrame};