1#![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};
9
10#[cfg(all(feature = "sqlite", not(target_arch = "wasm32")))]
11pub mod compact;
12pub mod consume;
13pub mod error;
14pub mod produce;
15pub mod storage;
16pub mod testing;
17
18pub struct CdcVersion;
19
20impl HasVersion for CdcVersion {
21 fn version(&self) -> SystemVersion {
22 SystemVersion {
23 name: env!("CARGO_PKG_NAME")
24 .strip_prefix("reifydb-")
25 .unwrap_or(env!("CARGO_PKG_NAME"))
26 .to_string(),
27 version: env!("CARGO_PKG_VERSION").to_string(),
28 description: "Change Data Capture module".to_string(),
29 r#type: ComponentType::Module,
30 }
31 }
32}