Skip to main content

rustbasic_core/
lib.rs

1pub mod app;
2pub mod session;
3pub mod database;
4pub mod server;
5pub mod logger;
6pub mod requests;
7pub mod responses;
8pub mod view;
9pub mod session_manager;
10pub mod errors;
11pub mod seeder;
12pub mod middleware;
13pub mod schema;
14pub mod macros;
15pub mod router;
16pub mod support;
17pub mod tracing;
18pub mod uuid;
19pub mod validator;
20pub mod dotenvy;
21pub mod colored;
22pub mod base64;
23pub mod serde_urlencoded;
24pub mod testing;
25#[cfg(feature = "mail")]
26pub mod mail;
27pub mod template;
28pub mod sql;
29pub mod rand;
30pub mod bcrypt;
31
32
33pub use testing::{TestClient, TestResponse};
34pub use schema::{Schema, Blueprint, ColumnBuilder, SchemaManager, MigrationTrait, MigratorTrait, DbErr};
35pub use support::{Log, Str, Validator};
36#[cfg(feature = "websocket")]
37pub use support::Broadcaster;
38#[cfg(feature = "http-client")]
39pub use support::{Http, PendingRequest, HttpResponse};
40pub use database::{DB, QueryBuilder};
41#[cfg(feature = "mail")]
42pub use mail::{MailService, Mailer};
43
44// Re-export Config agar bisa dipanggil dengan crate::Config
45pub use app::Config;
46pub use server::AppState;
47pub use requests::Request;
48pub use responses::ResponseHelper;
49pub use router::{Router, Response, IntoResponse, State, Html, Json, Redirect, get, post, put, patch, delete};
50pub use middleware::{from_fn, Next};
51pub use rustbasic_core_macro::async_trait;
52
53pub use http;
54pub use tokio;
55pub use template as rustbasic_template;
56pub use serde;
57pub use serde_json;
58pub use regex;
59pub mod chrono;
60pub mod chrono_tz;
61pub mod rust_embed;
62#[cfg(feature = "http-client")]
63pub use reqwest;
64#[cfg(feature = "jwt")]
65pub use jsonwebtoken;
66#[cfg(feature = "image-processing")]
67pub use image;
68#[cfg(feature = "image-processing")]
69pub use webp;
70#[cfg(feature = "image-processing")]
71pub use sha2;
72
73#[cfg(feature = "android")]
74pub use jni;
75#[cfg(feature = "android")]
76pub use libc;
77
78#[cfg(feature = "desktop")]
79pub use wry;