Skip to main content

reifydb_core/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2026 ReifyDB
3
4#![cfg_attr(not(debug_assertions), deny(clippy::disallowed_methods))]
5#![cfg_attr(debug_assertions, warn(clippy::disallowed_methods))]
6#![cfg_attr(not(debug_assertions), deny(warnings))]
7#![allow(clippy::tabs_in_doc_comments)]
8
9use crate::interface::version::{ComponentType, HasVersion, SystemVersion};
10
11pub mod actors;
12pub mod common;
13pub mod default;
14pub mod delta;
15pub mod error;
16pub mod event;
17pub mod execution;
18pub mod fingerprint;
19pub mod interface;
20pub mod key;
21pub mod lifecycle;
22pub mod metrics;
23pub mod partition;
24pub mod profiler;
25pub mod row;
26pub mod sort;
27pub mod state;
28pub mod testing;
29pub mod util;
30pub mod value;
31
32pub struct CoreVersion;
33
34impl HasVersion for CoreVersion {
35	fn version(&self) -> SystemVersion {
36		SystemVersion {
37			name: env!("CARGO_PKG_NAME")
38				.strip_prefix("reifydb-")
39				.unwrap_or(env!("CARGO_PKG_NAME"))
40				.to_string(),
41			version: env!("CARGO_PKG_VERSION").to_string(),
42			description: "Core database interfaces and data structures".to_string(),
43			r#type: ComponentType::Module,
44		}
45	}
46}