1#![no_std]
19
20#[cfg(feature = "alloc")]
21extern crate alloc;
22
23#[cfg(feature = "std")]
24extern crate std;
25
26pub mod bits;
27pub mod crc;
28pub mod decoder;
29pub mod encoder;
30pub mod hash;
31pub mod managed;
32pub mod opaque;
33pub mod predictor;
34pub mod quant;
35#[cfg(feature = "alloc")]
36pub mod registry;
37pub mod slot;
38pub mod storage;
39pub mod tol;
40pub mod value;
41
42#[cfg(feature = "alloc")]
43pub use decoder::Decoded;
44pub use decoder::Decoder;
45pub use decoder::{DecodeError, DecoderConfig};
46pub use encoder::Encoder;
47#[cfg(feature = "alloc")]
48pub use encoder::Plan;
49pub use encoder::{
50 ConfigError, EncodeError, EncodeInfo, EncoderConfig, PredictorBuilder, Presence,
51};
52#[cfg(feature = "alloc")]
53pub use predsync_schema::FieldSchema;
54pub use predsync_schema::{self as schema, PredictorKind};
55#[cfg(feature = "alloc")]
56pub use registry::PredictorRegistry;
57pub use slot::{ScalarType, Slot};
58#[cfg(feature = "alloc")]
59pub use value::Value;
60pub use value::{BoundedValue, ValueRef};
61
62#[derive(Debug, Clone, Copy, PartialEq, Eq)]
64pub enum Validity {
65 Valid,
67 Predicted,
69 Unknown,
71 ReSync,
73}
74
75#[cfg(feature = "alloc")]
77#[derive(Debug, Clone, PartialEq, Eq)]
78pub struct FieldOut {
79 pub validity: Validity,
80 pub value: Value,
81}
82
83pub fn core_smoke_value() -> u8 {
85 42
86}
87
88#[cfg(test)]
89mod tests {
90 #[test]
91 fn smoke_test() {
92 assert_eq!(crate::core_smoke_value(), 42);
93 }
94}