From c2e7ecafe8732bdecc264c1d12dcac256a7e0c52 Mon Sep 17 00:00:00 2001 From: Amninder Kaur Date: Tue, 5 Sep 2023 13:07:44 +1000 Subject: [PATCH] fix: get libssl-dev --- .github/workflows/rust_build.yml | 3 +++ Cargo.lock | 46 ++++++++++++++++++++++++++++++++ chronos_bin/Cargo.toml | 2 +- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust_build.yml b/.github/workflows/rust_build.yml index f8044f6..a711a16 100644 --- a/.github/workflows/rust_build.yml +++ b/.github/workflows/rust_build.yml @@ -11,6 +11,9 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: toolchain: stable + - run: sudo apt-get install libssl-dev + - run: sudo apt-get install libssl2-dev + - run: rustup component add rustfmt clippy - name: cargo clean run: cargo clean diff --git a/Cargo.lock b/Cargo.lock index fae7195..5abc420 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -469,6 +469,18 @@ version = "0.15.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" +[[package]] +name = "duct" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37ae3fc31835f74c2a7ceda3aeede378b0ae2e74c8f1c36559fcc9ae2a4e7d3e" +dependencies = [ + "libc", + "once_cell", + "os_pipe", + "shared_child", +] + [[package]] name = "env_logger" version = "0.9.3" @@ -983,6 +995,16 @@ dependencies = [ "vcpkg", ] +[[package]] +name = "os_pipe" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ae859aa07428ca9a929b936690f8b12dc5f11dd8c6992a18ca93919f28bc177" +dependencies = [ + "libc", + "windows-sys", +] + [[package]] name = "parking_lot" version = "0.12.1" @@ -1183,7 +1205,9 @@ dependencies = [ "libc", "libz-sys", "num_enum", + "openssl-sys", "pkg-config", + "sasl2-sys", ] [[package]] @@ -1338,6 +1362,18 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "sasl2-sys" +version = "0.1.20+2.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e645bd98535fc8fd251c43ba7c7c1f9be1e0369c99b6a5ea719052a773e655c" +dependencies = [ + "cc", + "duct", + "libc", + "pkg-config", +] + [[package]] name = "scopeguard" version = "1.2.0" @@ -1429,6 +1465,16 @@ dependencies = [ "digest", ] +[[package]] +name = "shared_child" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0d94659ad3c2137fef23ae75b03d5241d633f8acded53d672decfa0e6e0caef" +dependencies = [ + "libc", + "winapi", +] + [[package]] name = "signal-hook-registry" version = "1.4.1" diff --git a/chronos_bin/Cargo.toml b/chronos_bin/Cargo.toml index 17ab623..6ac00e1 100644 --- a/chronos_bin/Cargo.toml +++ b/chronos_bin/Cargo.toml @@ -29,7 +29,7 @@ serde = { version = "1.0.152", features = ["derive"] } serde_json = "1.0.93" #kafka -rdkafka = { version = "0.34.0" } +rdkafka = { version = "0.34.0", features = ["sasl"] } #exception-handling thiserror = "1.0.31"