Skip to main content

reifydb_core/
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 crate::interface::version::{ComponentType, HasVersion, SystemVersion};
7
8pub mod common;
9pub mod delta;
10pub mod encoded;
11pub mod error;
12pub mod event;
13pub mod interface;
14pub mod key;
15pub mod retention;
16pub mod row;
17pub mod sort;
18pub mod util;
19pub mod value;
20
21pub struct CoreVersion;
22
23impl HasVersion for CoreVersion {
24	fn version(&self) -> SystemVersion {
25		SystemVersion {
26			name: env!("CARGO_PKG_NAME")
27				.strip_prefix("reifydb-")
28				.unwrap_or(env!("CARGO_PKG_NAME"))
29				.to_string(),
30			version: env!("CARGO_PKG_VERSION").to_string(),
31			description: "Core database interfaces and data structures".to_string(),
32			r#type: ComponentType::Module,
33		}
34	}
35}