Skip to main content

reifydb_auth/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3
4#![cfg_attr(not(debug_assertions), deny(warnings))]
5extern crate core;
6
7use reifydb_core::interface::version::{ComponentType, HasVersion, SystemVersion};
8
9pub mod challenge;
10pub mod error;
11pub mod method;
12pub mod registry;
13pub mod service;
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}