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 durability;
16pub mod error;
17pub mod event;
18pub mod execution;
19pub mod expression;
20pub mod fingerprint;
21pub mod flow;
22pub mod interface;
23pub mod key;
24pub mod lifecycle;
25pub mod metrics;
26pub mod operator_with;
27pub mod partition;
28pub mod profiler;
29pub mod retry;
30pub mod row;
31pub mod sort;
32pub mod state;
33pub mod testing;
34pub mod util;
35pub mod value;
36pub mod wal;
37
38pub struct CoreVersion;
39
40impl HasVersion for CoreVersion {
41	fn version(&self) -> SystemVersion {
42		SystemVersion {
43			name: env!("CARGO_PKG_NAME")
44				.strip_prefix("reifydb-")
45				.unwrap_or(env!("CARGO_PKG_NAME"))
46				.to_string(),
47			version: env!("CARGO_PKG_VERSION").to_string(),
48			description: "Core database interfaces and data structures".to_string(),
49			r#type: ComponentType::Module,
50		}
51	}
52}