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