Skip to main content

mkt_ksa_geo_sec/
lib.rs

1/*!
2Arabic: الواجهة العامة لمكتبة `MKT_KSA_Geolocation_Security`
3
4توفر هذه المكتبة واجهات معيارية لاستخدام المحركات الأساسية (Core)، ووحدات الأمان (Security)،
5ووحدات الأدوات (Utils)، وقاعدة البيانات (DB)، وطبقة الـ API (اختياري).
6
7تدعم أنماط الربط التالية:
8- rlib: للاستخدام من صناديق Rust الأخرى.
9- cdylib/staticlib: للربط عبر C-ABI من لغات أخرى (C/C++/Python/.NET/Java...)
10
11English: Public library surface for `MKT_KSA_Geolocation_Security`
12
13This crate exposes modular interfaces for the core engines, security modules,
14utilities, database layer, and (optionally) the API layer.
15
16Supported crate types:
17- rlib: to be used as a normal Rust library.
18- cdylib/staticlib: to be linked via C-ABI from other languages.
19*/
20
21#![forbid(unsafe_op_in_unsafe_fn)]
22
23pub mod api;
24pub mod core;
25pub mod db;
26pub mod security;
27pub mod utils;
28
29// Re-export AppState to make API handlers importable from the lib root when needed
30pub mod app_state;
31pub use app_state::AppState;
32
33// Re-exports of commonly used items for ergonomic public API
34pub use crate::core::geo_resolver::{GeoLocation, GeoResolver};
35pub use crate::security::signing;
36pub use crate::utils::precision;