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::drop::*,
33    polars::normalize::*,
34    polars::remove::*,
35    polars::replace::*,
36    sort::*,
37    sqls::*,
38    traits::*,
39};
40
41// https://crates.io/crates/cfg-if
42cfg_if::cfg_if! {
43    // Use simple or special format.
44    // A special format is applied to the "AlĂ­quota" (Tax Rate) column.
45    if #[cfg(feature = "format-special")] {
46        mod decimal_and_layout_v2;
47        pub use decimal_and_layout_v2::*;
48    } else {
49        // default: "simple"
50        mod decimal_and_layout_v1;
51        pub use decimal_and_layout_v1::*;
52    }
53}