1#![cfg_attr(not(debug_assertions), deny(warnings))]
5extern crate core;
6
7use reifydb_core::interface::version::{ComponentType, HasVersion, SystemVersion};
8
9pub(crate) mod crypto;
10pub mod error;
11pub mod password;
12pub mod registry;
13pub mod token;
14
15pub struct AuthVersion;
16
17impl HasVersion for AuthVersion {
18 fn version(&self) -> SystemVersion {
19 SystemVersion {
20 name: env!("CARGO_PKG_NAME")
21 .strip_prefix("reifydb-")
22 .unwrap_or(env!("CARGO_PKG_NAME"))
23 .to_string(),
24 version: env!("CARGO_PKG_VERSION").to_string(),
25 description: "Authentication and authorization module".to_string(),
26 r#type: ComponentType::Module,
27 }
28 }
29}