Skip to main content

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