Skip to content

Commit

Permalink
Statically link libsasl for kafka (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde committed Jul 8, 2024
1 parent 3371ef6 commit b7e21d7
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion crates/arroyo-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ license = "MIT OR Apache-2.0"

[features]
default = []
kafka-sasl = ["arroyo-connectors/kafka-sasl"]

[dependencies]
arroyo-types = { path = "../arroyo-types" }
Expand Down
4 changes: 2 additions & 2 deletions crates/arroyo-connectors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition = "2021"

[features]
default = []
kafka-sasl = ["rdkafka/sasl", "rdkafka/ssl-vendored"]

[dependencies]
arroyo-types = { path = "../arroyo-types" }
Expand Down Expand Up @@ -48,8 +47,9 @@ regex = "1"
##########################

# Kafka
rdkafka = { version = "0.33", features = ["cmake-build", "tracing"] }
rdkafka = { version = "0.33", features = ["cmake-build", "tracing", "sasl", "ssl-vendored"] }
rdkafka-sys = "4.5.0"
sasl2-sys = { version = "0.1.6", features = ["vendored"] }

# SSE
eventsource-client = "0.12.0"
Expand Down
1 change: 0 additions & 1 deletion crates/arroyo-controller/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition = "2021"

[features]
default = []
kafka-sasl = []

[dependencies]
arroyo-types = { path = "../arroyo-types" }
Expand Down
1 change: 0 additions & 1 deletion crates/arroyo-worker/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ edition = "2021"

[features]
default = []
kafka-sal = ["arroyo-connectors/kafka-sasl"]

[dependencies]
arroyo-types = { path = "../arroyo-types" }
Expand Down
3 changes: 0 additions & 3 deletions crates/arroyo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name = "arroyo"
version = "0.11.0"
edition = "2021"

[features]
kafka-sasl = ["arroyo-connectors/kafka-sasl", "arroyo-worker/kafka-sal"]

[dependencies]
arroyo-types = { path ="../arroyo-types" }
arroyo-connectors = { path ="../arroyo-connectors" }
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry,id=${TARGETPLATFORM}-${P
sudo -u postgres psql -c "CREATE USER arroyo WITH PASSWORD 'arroyo' SUPERUSER;" && \
sudo -u postgres createdb arroyo && \
refinery migrate -c refinery.toml -p crates/arroyo-api/migrations && \
CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_PROFILE_RELEASE_DEBUG=false cargo build --profile ${PROFILE} --bin arroyo --all-features && \
CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_PROFILE_RELEASE_DEBUG=false cargo build --profile ${PROFILE} --bin arroyo && \
mv target/*/arroyo /arroyo


Expand Down

0 comments on commit b7e21d7

Please sign in to comment.