Some checks failed
CI/CD Pipeline / Test Suite (push) Has been cancelled
CI/CD Pipeline / Security Audit (push) Has been cancelled
CI/CD Pipeline / Build Docker Image (push) Has been cancelled
CI/CD Pipeline / Deploy to Staging (push) Has been cancelled
CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Performance Benchmarks (push) Has been cancelled
CI/CD Pipeline / Cleanup (push) Has been cancelled
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::*; |