Skip to main content

reifydb_cdc/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3
4#![cfg_attr(not(debug_assertions), deny(warnings))]
5
6use reifydb_core::interface::version::{ComponentType, HasVersion, SystemVersion};
7
8pub mod consume;
9pub mod error;
10pub mod produce;
11pub mod storage;
12
13pub struct CdcVersion;
14
15impl HasVersion for CdcVersion {
16	fn version(&self) -> SystemVersion {
17		SystemVersion {
18			name: env!("CARGO_PKG_NAME")
19				.strip_prefix("reifydb-")
20				.unwrap_or(env!("CARGO_PKG_NAME"))
21				.to_string(),
22			version: env!("CARGO_PKG_VERSION").to_string(),
23			description: "Change Data Capture module".to_string(),
24			r#type: ComponentType::Module,
25		}
26	}
27}