forked from pola-rs/nodejs-polars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.rs
40 lines (33 loc) · 709 Bytes
/
lib.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#![allow(clippy::transmute_undefined_repr)]
#[macro_use]
extern crate napi_derive;
const VERSION: &str = env!("CARGO_PKG_VERSION");
#[napi]
pub fn version() -> &'static str {
VERSION
}
#[napi]
pub fn toggle_string_cache() {
polars::enable_string_cache()
}
pub mod conversion;
pub mod dataframe;
pub mod datatypes;
pub mod error;
pub mod file;
pub mod functions;
pub mod lazy;
pub mod list_construction;
pub mod prelude;
pub mod series;
pub mod set;
pub mod sql;
pub mod utils;
pub use polars_core;
pub mod export {
pub use crate::dataframe::JsDataFrame;
pub use crate::lazy::dataframe::JsLazyFrame;
pub use polars;
pub use polars::prelude::LazyFrame;
pub use polars_core;
}