Skip to main content

lutra_bin/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3pub mod br;
4mod decode;
5mod encode;
6mod error;
7pub mod ir;
8pub mod layout;
9mod printer;
10pub mod reader;
11pub mod rr;
12mod table;
13mod tabular;
14pub mod typed_data;
15mod value;
16mod visitor;
17
18#[path = "project/generated.rs"]
19mod generated;
20
21pub use decode::{Decode, decode_enum_head};
22pub use encode::{Encode, ReversePointer, encode_enum_head_padding, encode_enum_head_tag};
23pub use error::{Error, Result};
24pub use layout::Layout;
25pub use reader::{ArrayReader, ReaderExt, TupleReader};
26pub use value::{Value, ValueVisitor};
27pub use visitor::Visitor;
28
29#[cfg(feature = "std")]
30pub use printer::print_source;
31#[cfg(feature = "std")]
32pub use table::{Config as TableConfig, Table, layout::Layout as TableLayout};
33#[cfg(feature = "std")]
34pub use tabular::{TableCell, TabularReader};
35
36pub use bytes;
37
38#[cfg(not(feature = "std"))]
39extern crate alloc;
40
41#[cfg(not(feature = "std"))]
42pub use alloc::vec;
43#[cfg(feature = "std")]
44pub use std::vec;
45
46#[cfg(not(feature = "std"))]
47pub use alloc::string;
48#[cfg(feature = "std")]
49pub use std::string;
50
51#[cfg(not(feature = "std"))]
52use alloc::borrow;
53#[cfg(feature = "std")]
54use std::borrow;
55
56#[cfg(not(feature = "std"))]
57pub use alloc::boxed;
58#[cfg(feature = "std")]
59pub use std::boxed;
60
61#[cfg(not(feature = "std"))]
62pub use alloc::collections;
63#[cfg(feature = "std")]
64pub use std::collections;