lance_file/
format.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright The Lance Authors
3
4/// Protobuf definitions for Lance Format
5pub mod pb {
6    #![allow(clippy::all)]
7    #![allow(non_upper_case_globals)]
8    #![allow(non_camel_case_types)]
9    #![allow(non_snake_case)]
10    #![allow(unused)]
11    #![allow(improper_ctypes)]
12    #![allow(clippy::upper_case_acronyms)]
13    #![allow(clippy::use_self)]
14    include!(concat!(env!("OUT_DIR"), "/lance.file.rs"));
15}
16
17/// Protobuf definitions for Lance Format v2
18pub mod pbfile {
19    #![allow(clippy::all)]
20    #![allow(non_upper_case_globals)]
21    #![allow(non_camel_case_types)]
22    #![allow(non_snake_case)]
23    #![allow(unused)]
24    #![allow(improper_ctypes)]
25    #![allow(clippy::upper_case_acronyms)]
26    #![allow(clippy::use_self)]
27    include!(concat!(env!("OUT_DIR"), "/lance.file.v2.rs"));
28}
29
30pub mod metadata;
31
32/// These version/magic values are written at the end of Lance files (e.g. versions/1.version)
33pub const MAJOR_VERSION: i16 = 0;
34pub const MINOR_VERSION: i16 = 2;
35pub const MAGIC: &[u8; 4] = b"LANC";