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;
31pub mod cli;
32pub mod inertia;
33
34pub use inertia::inertia;
35
36pub use testing::{TestClient, TestResponse};
37pub use schema::{Schema, Blueprint, ColumnBuilder, SchemaManager, MigrationTrait, MigratorTrait, DbErr};
38pub use support::{Log, Str, Validator};
39#[cfg(feature = "websocket")]
40pub use support::Broadcaster;
41#[cfg(feature = "http-client")]
42pub use support::{Http, PendingRequest, HttpResponse};
43pub use database::{DB, QueryBuilder};
44#[cfg(feature = "mail")]
45pub use mail::{MailService, Mailer};
46
47// Re-export Config agar bisa dipanggil dengan crate::Config
48pub use app::Config;
49pub use server::{AppState, bootstrap};
50pub use requests::Request;
51pub use responses::ResponseHelper;
52pub use router::{Router, Response, IntoResponse, State, Html, Json, Redirect, get, post, put, patch, delete};
53pub use middleware::{from_fn, Next};
54pub use rustbasic_core_macro::async_trait;
55
56pub use http;
57pub use tokio;
58pub use template as rustbasic_template;
59pub use serde;
60pub use serde_json;
61#[cfg(feature = "regex")]
62pub use regex;
63pub mod chrono;
64pub mod chrono_tz;
65pub mod rust_embed;
66#[cfg(feature = "http-client")]
67pub use reqwest;
68#[cfg(feature = "jwt")]
69pub use jsonwebtoken;
70#[cfg(feature = "image-processing")]
71pub use image;
72#[cfg(feature = "image-processing")]
73pub use webp;
74#[cfg(feature = "image-processing")]
75pub use sha2;
76
77#[cfg(feature = "android")]
78pub use jni;
79#[cfg(feature = "android")]
80pub use libc;
81
82#[cfg(feature = "desktop")]
83pub use wry;
84
85pub mod build;