31 lines
620 B
Rust
31 lines
620 B
Rust
|
|
//! Authentication module (enabled with "auth" feature)
|
||
|
|
|
||
|
|
#[cfg(feature = "auth")]
|
||
|
|
pub mod auth_impl {
|
||
|
|
//! Implementation placeholder - real implementations will provide auth services
|
||
|
|
|
||
|
|
/// Placeholder auth service
|
||
|
|
pub struct AuthService;
|
||
|
|
|
||
|
|
impl AuthService {
|
||
|
|
pub fn new() -> Self {
|
||
|
|
Self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
#[cfg(not(feature = "auth"))]
|
||
|
|
pub mod auth_impl {
|
||
|
|
//! No-op implementation when auth feature is disabled
|
||
|
|
|
||
|
|
/// Disabled auth service
|
||
|
|
pub struct AuthService;
|
||
|
|
|
||
|
|
impl AuthService {
|
||
|
|
pub fn new() -> Self {
|
||
|
|
Self
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
pub use auth_impl::*;
|