Skip to main content

reifydb_engine/
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 reifydb_core::interface::version::{ComponentType, HasVersion, SystemVersion};
10use reifydb_value::Result;
11
12pub mod bulk_insert;
13pub mod engine;
14pub mod environment;
15pub mod error;
16pub mod partition;
17pub mod policy;
18pub mod queue;
19#[cfg(not(reifydb_single_threaded))]
20pub mod remote;
21pub mod run_tests;
22pub mod session;
23pub mod subscription;
24pub mod transaction;
25pub mod vm;
26pub mod watermark;
27
28pub struct EngineVersion;
29
30impl HasVersion for EngineVersion {
31	fn version(&self) -> SystemVersion {
32		SystemVersion {
33			name: env!("CARGO_PKG_NAME")
34				.strip_prefix("reifydb-")
35				.unwrap_or(env!("CARGO_PKG_NAME"))
36				.to_string(),
37			version: env!("CARGO_PKG_VERSION").to_string(),
38			description: "Query execution and processing engine module".to_string(),
39			r#type: ComponentType::Module,
40		}
41	}
42}