smartcalc_tauri/
lib.rs

1/*
2 * smartcalc v1.0.8
3 * Copyright (c) Erhan BARIS (Ruslan Ognyanov Asenov)
4 * Licensed under the GNU General Public License v2.0.
5 */
6
7#![no_std]
8extern crate alloc;
9extern crate lazy_static;
10extern crate log;
11
12pub const VERSION: &str = env!("CARGO_PKG_VERSION");
13
14#[cfg(all(not(target_arch = "wasm32"), not(test)))]
15extern crate libc_print;
16
17pub(crate) mod compiler;
18pub(crate) mod config;
19pub(crate) mod constants;
20pub(crate) mod formatter;
21pub(crate) mod logger;
22pub(crate) mod session;
23pub(crate) mod smartcalc;
24pub(crate) mod syntax;
25pub(crate) mod token;
26pub(crate) mod tokinizer;
27pub(crate) mod tools;
28pub(crate) mod types;
29pub(crate) mod variable;
30
31#[cfg(test)]
32mod tests;
33
34pub use compiler::{money, DataItem};
35pub use config::SmartCalcConfig;
36pub use session::Session;
37pub use smartcalc::RuleTrait;
38pub use smartcalc::SmartCalc;
39pub use token::ui_token::UiToken;
40pub use token::ui_token::UiTokenType;
41pub use types::FieldType;
42pub use types::NumberType;
43pub use types::SmartCalcAstType;
44pub use types::TimeOffset;
45pub use types::TokenType;