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 retry;
26pub mod row;
27pub mod sort;
28pub mod state;
29pub mod testing;
30pub mod util;
31pub mod value;
32
33pub struct CoreVersion;
34
35impl HasVersion for CoreVersion {
36	fn version(&self) -> SystemVersion {
37		SystemVersion {
38			name: env!("CARGO_PKG_NAME")
39				.strip_prefix("reifydb-")
40				.unwrap_or(env!("CARGO_PKG_NAME"))
41				.to_string(),
42			version: env!("CARGO_PKG_VERSION").to_string(),
43			description: "Core database interfaces and data structures".to_string(),
44			r#type: ComponentType::Module,
45		}
46	}
47}