Skip to main content

lutra_bin/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2
3pub mod br;
4mod decode;
5mod encode;
6pub mod error;
7pub mod ident;
8pub mod ir;
9pub mod layout;
10mod printer;
11pub mod reader;
12pub mod rr;
13mod shape;
14mod tabular;
15pub mod typed_data;
16mod value;
17mod visitor;
18
19#[path = "project/generated.rs"]
20mod generated;
21
22pub use decode::{Decode, decode_enum_head};
23pub use encode::{Encode, ReversePointer, encode_enum_head_padding, encode_enum_head_tag};
24pub use error::{Error, Result};
25pub use layout::Layout;
26pub use reader::{ArrayReader, ReaderExt, TupleReader};
27pub use value::{Value, ValueVisitor};
28pub use visitor::Visitor;
29
30#[cfg(feature = "std")]
31pub use printer::print_source;
32pub use shape::{Shape, get_shape};
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;