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