Skip to main content

reifydb_core/
lib.rs

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