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