Skip to main content

teaql_tool/
lib.rs

1pub use teaql_tool_core::{Result, TeaQLToolError};
2
3pub struct T;
4
5impl T {
6    #[cfg(feature = "std")]
7    pub fn time() -> teaql_tool_std::time::TimeTool {
8        teaql_tool_std::time::TimeTool::new()
9    }
10
11    #[cfg(feature = "std")]
12    pub fn id() -> teaql_tool_std::id::IdTool {
13        teaql_tool_std::id::IdTool::new()
14    }
15
16    #[cfg(feature = "std")]
17    pub fn text() -> teaql_tool_std::text::TextTool {
18        teaql_tool_std::text::TextTool::new()
19    }
20
21    #[cfg(feature = "std")]
22    pub fn json() -> teaql_tool_std::json::JsonTool {
23        teaql_tool_std::json::JsonTool::new()
24    }
25
26    #[cfg(feature = "std")]
27    pub fn regex() -> teaql_tool_std::regex::RegexTool {
28        teaql_tool_std::regex::RegexTool::new()
29    }
30
31    #[cfg(feature = "std")]
32    pub fn decimal() -> teaql_tool_std::decimal::DecimalTool {
33        teaql_tool_std::decimal::DecimalTool::new()
34    }
35
36    #[cfg(feature = "std")]
37    pub fn money() -> teaql_tool_std::money::MoneyTool {
38        teaql_tool_std::money::MoneyTool::new()
39    }
40
41    #[cfg(feature = "std")]
42    pub fn codec() -> teaql_tool_std::codec::CodecTool {
43        teaql_tool_std::codec::CodecTool::new()
44    }
45
46    #[cfg(feature = "std")]
47    pub fn hash() -> teaql_tool_std::hash::HashTool {
48        teaql_tool_std::hash::HashTool::new()
49    }
50
51    #[cfg(feature = "std")]
52    pub fn high_res_timer() -> teaql_tool_std::high_res_timer::HighResTimerTool {
53        teaql_tool_std::high_res_timer::HighResTimerTool::new()
54    }
55
56    #[cfg(feature = "std")]
57    pub fn color() -> teaql_tool_std::color::ColorTool {
58        teaql_tool_std::color::ColorTool::new()
59    }
60
61    #[cfg(feature = "std")]
62    pub fn daterange() -> teaql_tool_std::daterange::DateRangeTool {
63        teaql_tool_std::daterange::DateRangeTool::new()
64    }
65
66    #[cfg(feature = "std")]
67    pub fn diff() -> teaql_tool_std::diff::DiffTool {
68        teaql_tool_std::diff::DiffTool::new()
69    }
70
71    #[cfg(feature = "std")]
72    pub fn i18n() -> teaql_tool_std::i18n::I18nTool {
73        teaql_tool_std::i18n::I18nTool::new()
74    }
75
76    #[cfg(feature = "std")]
77    pub fn list() -> teaql_tool_std::list::ListTool {
78        teaql_tool_std::list::ListTool::new()
79    }
80
81    #[cfg(feature = "std")]
82    pub fn map() -> teaql_tool_std::map::MapTool {
83        teaql_tool_std::map::MapTool::new()
84    }
85
86    #[cfg(feature = "std")]
87    pub fn system() -> teaql_tool_std::system::SystemTool {
88        teaql_tool_std::system::SystemTool::new()
89    }
90
91    #[cfg(feature = "std")]
92    pub fn unit() -> teaql_tool_std::unit::UnitTool {
93        teaql_tool_std::unit::UnitTool::new()
94    }
95
96    #[cfg(feature = "std")]
97    pub fn url() -> teaql_tool_std::url::UrlTool {
98        teaql_tool_std::url::UrlTool::new()
99    }
100
101    #[cfg(feature = "std")]
102    pub fn filter() -> teaql_tool_std::filter::FilterTool {
103        teaql_tool_std::filter::FilterTool::new()
104    }
105
106    #[cfg(feature = "std")]
107    pub fn file() -> teaql_tool_std::file::FileTool {
108        teaql_tool_std::file::FileTool
109    }
110
111    #[cfg(feature = "std")]
112    pub fn desensitize() -> teaql_tool_std::desensitize::DesensitizeTool {
113        teaql_tool_std::desensitize::DesensitizeTool::new()
114    }
115
116    #[cfg(feature = "std")]
117    pub fn emoji() -> teaql_tool_std::emoji::EmojiTool {
118        teaql_tool_std::emoji::EmojiTool::new()
119    }
120
121    #[cfg(feature = "std")]
122    pub fn net() -> teaql_tool_std::net::NetTool {
123        teaql_tool_std::net::NetTool::new()
124    }
125
126    #[cfg(feature = "std")]
127    pub fn tree() -> teaql_tool_std::tree::TreeTool {
128        teaql_tool_std::tree::TreeTool::new()
129    }
130
131    #[cfg(feature = "std")]
132    pub fn validate() -> teaql_tool_std::validate::ValidateTool {
133        teaql_tool_std::validate::ValidateTool::new()
134    }
135
136    #[cfg(feature = "extra")]
137    pub fn address() -> teaql_tool_extra::address::AddressTool {
138        teaql_tool_extra::address::AddressTool::new()
139    }
140
141    #[cfg(feature = "extra")]
142    pub fn archive() -> teaql_tool_extra::archive::ArchiveTool {
143        teaql_tool_extra::archive::ArchiveTool::new()
144    }
145
146    #[cfg(feature = "extra")]
147    pub fn barcode() -> teaql_tool_extra::barcode::BarcodeTool {
148        teaql_tool_extra::barcode::BarcodeTool::new()
149    }
150
151    #[cfg(feature = "extra")]
152    pub fn cache() -> teaql_tool_extra::cache::CacheTool {
153        teaql_tool_extra::cache::CacheTool::new()
154    }
155
156    #[cfg(feature = "extra")]
157    pub fn clipboard() -> teaql_tool_extra::clipboard::ClipboardTool {
158        teaql_tool_extra::clipboard::ClipboardTool::new()
159    }
160
161    #[cfg(feature = "extra")]
162    pub fn cmd() -> teaql_tool_extra::cmd::CmdTool {
163        teaql_tool_extra::cmd::CmdTool::new()
164    }
165
166    #[cfg(feature = "extra")]
167    pub fn config() -> teaql_tool_extra::config::ConfigTool {
168        teaql_tool_extra::config::ConfigTool::new()
169    }
170
171    #[cfg(feature = "extra")]
172    pub fn cron() -> teaql_tool_extra::cron::CronTool {
173        teaql_tool_extra::cron::CronTool::new()
174    }
175
176    #[cfg(feature = "extra")]
177    pub fn crypto() -> teaql_tool_extra::crypto::CryptoTool {
178        teaql_tool_extra::crypto::CryptoTool::new()
179    }
180
181    #[cfg(feature = "extra")]
182    pub fn csv() -> teaql_tool_extra::csv::CsvTool {
183        teaql_tool_extra::csv::CsvTool::new()
184    }
185
186    #[cfg(feature = "extra")]
187    pub fn email() -> teaql_tool_extra::email::EmailTool {
188        teaql_tool_extra::email::EmailTool::new()
189    }
190
191    #[cfg(feature = "extra")]
192    pub fn excel() -> teaql_tool_extra::excel::ExcelTool {
193        teaql_tool_extra::excel::ExcelTool::new()
194    }
195
196    #[cfg(feature = "extra")]
197    pub fn geo() -> teaql_tool_extra::geo::GeoTool {
198        teaql_tool_extra::geo::GeoTool::new()
199    }
200
201    #[cfg(feature = "extra")]
202    pub fn html() -> teaql_tool_extra::html::HtmlTool {
203        teaql_tool_extra::html::HtmlTool::new()
204    }
205
206    #[cfg(feature = "extra")]
207    pub fn http() -> teaql_tool_extra::http::HttpTool {
208        teaql_tool_extra::http::HttpTool::new()
209    }
210
211    #[cfg(feature = "extra")]
212    pub fn image() -> teaql_tool_extra::image::ImageTool {
213        teaql_tool_extra::image::ImageTool::new()
214    }
215
216    #[cfg(feature = "extra")]
217    pub fn jwt() -> teaql_tool_extra::jwt::JwtTool {
218        teaql_tool_extra::jwt::JwtTool::new()
219    }
220
221    #[cfg(feature = "extra")]
222    pub fn kv() -> teaql_tool_extra::kv::KvTool {
223        teaql_tool_extra::kv::KvTool::new()
224    }
225
226    #[cfg(feature = "extra")]
227    pub fn phone() -> teaql_tool_extra::phone::PhoneTool {
228        teaql_tool_extra::phone::PhoneTool::new()
229    }
230
231    #[cfg(feature = "extra")]
232    pub fn pinyin() -> teaql_tool_extra::pinyin::PinyinTool {
233        teaql_tool_extra::pinyin::PinyinTool::new()
234    }
235
236    #[cfg(feature = "extra")]
237    pub fn qrcode() -> teaql_tool_extra::qrcode::QrcodeTool {
238        teaql_tool_extra::qrcode::QrcodeTool::new()
239    }
240
241    #[cfg(feature = "extra")]
242    pub fn random() -> teaql_tool_extra::random::RandomTool {
243        teaql_tool_extra::random::RandomTool::new()
244    }
245
246    #[cfg(feature = "extra")]
247    pub fn template() -> teaql_tool_extra::template::TemplateTool {
248        teaql_tool_extra::template::TemplateTool::new()
249    }
250
251    #[cfg(feature = "extra")]
252    pub fn proxy() -> teaql_tool_extra::proxy::ProxyTool {
253        teaql_tool_extra::proxy::ProxyTool::new()
254    }
255
256    #[cfg(feature = "extra")]
257    pub fn server() -> teaql_tool_extra::server::ServerTool {
258        teaql_tool_extra::server::ServerTool::new()
259    }
260
261    #[cfg(feature = "extra")]
262    pub fn watcher() -> teaql_tool_extra::watcher::WatcherTool {
263        teaql_tool_extra::watcher::WatcherTool::new()
264    }
265}