Skip to main content

tpack_core/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![doc = include_str!("../README.md")]
3
4extern crate alloc;
5
6mod codec;
7mod error;
8mod native;
9mod registry;
10mod schema;
11mod value;
12
13pub use codec::{
14    CanonicalMode, DecodeOptions, Decoder, EncodeOptions, Encoder, Limits, MAGIC, VERSION,
15    decode_message, encode_message, encode_schema, encode_value,
16};
17pub use error::{Error, ErrorKind, ErrorPath, ErrorSource, PathSegment, Result};
18pub use native::{FromTpackValue, TpackDeserialize, TpackSerialize};
19pub use registry::{SchemaRegistry, empty_registry};
20pub use schema::{
21    CalendarInterval, Decimal, Duration, Envelope, EnvelopeMode, Field, Message, Schema, SchemaId,
22    TimestampPrecision, TypeDescriptor, Variant,
23};
24pub use value::{TpackValue, ValueMapEntry};