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;
6//mod config;
7mod container;
8mod error;
9mod extension;
10mod file_dialog;
11mod filters;
12mod format;
13mod layout;
14mod metadata;
15mod polars;
16//mod query;
17mod sort;
18mod sqls;
19mod traits;
20
21// Publicly expose the contents of these modules.
22pub use self::{
23    // add to lib
24    args::Arguments,
25    //config::*,
26    container::*,
27    error::*,
28    extension::*,
29    file_dialog::*,
30    filters::*,
31    format::*,
32    layout::*,
33    metadata::*,
34    polars::*,
35    //query::*,
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}