Skip to main content

reifydb_core/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
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 testing;
20pub mod util;
21pub mod value;
22
23pub struct CoreVersion;
24
25impl HasVersion for CoreVersion {
26	fn version(&self) -> SystemVersion {
27		SystemVersion {
28			name: env!("CARGO_PKG_NAME")
29				.strip_prefix("reifydb-")
30				.unwrap_or(env!("CARGO_PKG_NAME"))
31				.to_string(),
32			version: env!("CARGO_PKG_VERSION").to_string(),
33			description: "Core database interfaces and data structures".to_string(),
34			r#type: ComponentType::Module,
35		}
36	}
37}