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