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
12pub use decimal::*;
13pub use dtype::*;
14pub use extension::*;
15pub use field::*;
16pub use field_mask::*;
17pub use half;
18pub use nullability::*;
19pub use ptype::*;
20pub use struct_::*;
21
22#[cfg(feature = "arbitrary")]
23mod arbitrary;
24#[cfg(feature = "arrow")]
25pub mod arrow;
26pub mod datetime;
27mod decimal;
28mod dtype;
29mod extension;
30mod field;
31mod field_mask;
32mod nullability;
33mod ptype;
34mod serde;
35mod struct_;
36
37pub mod proto {
38    //! Protocol buffer representations for DTypes
39    //!
40    //! This module contains the code to serialize and deserialize DTypes to and from protocol buffers.
41
42    pub use vortex_proto::dtype;
43}
44
45pub mod flatbuffers {
46    //! Flatbuffer representations for DTypes
47    //!
48    //! This module contains the code to serialize and deserialize DTypes to and from flatbuffers.
49
50    pub use vortex_flatbuffers::dtype::*;
51
52    pub use super::serde::flatbuffers::*;
53}