Skip to main content

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