mod multipart;
mod traits;
mod ur_value;
pub use multipart::{MultipartDecoder, MultipartEncoder};
pub use traits::{UrCodable, UrDecodable, UrEncodable};
pub use ur_value::Ur;
use crate::{Error, Result};
fn map_cbor<T>(result: dcbor::Result<T>) -> Result<T> {
result.map_err(|e| Error::Cbor(e.to_string()))
}
#[cfg(test)]
mod tests {
const fn assert_send_sync<T: Send + Sync>() {}
#[test]
fn typed_types_are_send_sync() {
assert_send_sync::<super::Ur>();
assert_send_sync::<super::MultipartEncoder>();
assert_send_sync::<super::MultipartDecoder>();
}
}