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