vortex_dtype/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright the Vortex contributors
3
4#![cfg(target_endian = "little")]
5#![deny(missing_docs)]
6
7//! A type system for Vortex
8//!
9//! This crate contains the core logical type system for Vortex, including the definition of data types,
10//! and (optionally) logic for their serialization and deserialization.
11
12#[cfg(feature = "arbitrary")]
13mod arbitrary;
14#[cfg(feature = "arrow")]
15pub mod arrow;
16pub mod datetime;
17mod decimal;
18mod dtype;
19mod extension;
20mod field;
21mod field_mask;
22mod field_names;
23mod nullability;
24mod ptype;
25mod serde;
26mod struct_;
27
28pub use decimal::*;
29pub use dtype::*;
30pub use extension::*;
31pub use field::*;
32pub use field_mask::*;
33pub use field_names::*;
34pub use half;
35pub use nullability::*;
36pub use ptype::*;
37pub use struct_::*;
38
39pub mod proto {
40    //! Protocol buffer representations for DTypes
41    //!
42    //! This module contains the code to serialize and deserialize DTypes to and from protocol buffers.
43
44    pub use vortex_proto::dtype;
45}
46
47pub mod flatbuffers {
48    //! Flatbuffer representations for DTypes
49    //!
50    //! This module contains the code to serialize and deserialize DTypes to and from flatbuffers.
51
52    pub use vortex_flatbuffers::dtype::*;
53
54    pub use super::serde::flatbuffers::*;
55}