Skip to main content

reifydb_auth/
lib.rs

1// SPDX-License-Identifier: AGPL-3.0-or-later
2// Copyright (c) 2025 ReifyDB
3
4// #![cfg_attr(not(debug_assertions), deny(warnings))]
5
6use reifydb_core::interface::version::{ComponentType, HasVersion, SystemVersion};
7
8pub struct AuthVersion;
9
10impl HasVersion for AuthVersion {
11	fn version(&self) -> SystemVersion {
12		SystemVersion {
13			name: env!("CARGO_PKG_NAME")
14				.strip_prefix("reifydb-")
15				.unwrap_or(env!("CARGO_PKG_NAME"))
16				.to_string(),
17			version: env!("CARGO_PKG_VERSION").to_string(),
18			description: "Authentication and authorization module".to_string(),
19			r#type: ComponentType::Module,
20		}
21	}
22}