polars_view/
lib.rs

1#![warn(clippy::all)]
2#![doc = include_str!("../README.md")]
3
4// Modules that make up the PolarsView library.
5mod args;
6mod data_container;
7mod data_filter;
8mod data_format;
9mod error;
10mod file_dialog;
11mod file_extension;
12mod file_info;
13mod layout;
14mod polars;
15mod sort;
16mod sqls;
17mod traits;
18
19// Publicly expose the contents of these modules.
20pub use self::{
21    // add to lib
22    args::Arguments,
23    data_container::*,
24    data_filter::*,
25    data_format::*,
26    error::*,
27    file_dialog::*,
28    file_extension::*,
29    file_info::*,
30    layout::*,
31    polars::add::*,
32    polars::normalize::*,
33    polars::remove::*,
34    polars::replace::*,
35    sort::*,
36    sqls::*,
37    traits::*,
38};
39
40// https://crates.io/crates/cfg-if
41cfg_if::cfg_if! {
42    // Use simple or special format.
43    // A special format is applied to the "AlĂ­quota" (Tax Rate) column.
44    if #[cfg(feature = "format-special")] {
45        mod decimal_and_layout_v2;
46        pub use decimal_and_layout_v2::*;
47    } else {
48        // default: "simple"
49        mod decimal_and_layout_v1;
50        pub use decimal_and_layout_v1::*;
51    }
52}