Skip to content

Commit d204d55

Browse files
committed
first commit
0 parents  commit d204d55

File tree

6 files changed

+49
-0
lines changed

6 files changed

+49
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode/
2+
/scylla-cdc/target
3+
/target
4+
Cargo.lock

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[workspace]
2+
members = [
3+
"scylla-cdc",
4+
"scylla-cdc-printer",
5+
]

scylla-cdc-printer/Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[package]
2+
name = "scylla-cdc-replicator"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
scylla = "0.2.1"
10+
scylla-cdc = { version = "0.1.0", path = "../scylla-cdc" }
11+
tokio = { version = "1.1.0", features = ["full"] }

scylla-cdc-printer/src/main.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use std::error::Error;
2+
use std::time::Duration;
3+
4+
#[tokio::main]
5+
async fn main() -> Result<(), Box<dyn Error>> {
6+
println!("Hello");
7+
tokio::time::sleep(Duration::from_secs(1)).await;
8+
9+
println!("Printer");
10+
Ok(())
11+
}

scylla-cdc/Cargo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[package]
2+
name = "scylla-cdc"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
scylla = "0.2.1"
10+
tokio = { version = "1.1.0", features = ["rt", "io-util", "net", "time", "macros", "sync"] }

scylla-cdc/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#[cfg(test)]
2+
mod tests {
3+
#[test]
4+
fn it_works() {
5+
let result = 2 + 2;
6+
assert_eq!(result, 4);
7+
}
8+
}

0 commit comments

Comments
 (0)