Skip to content

Commit

Permalink
build: Rename with_ssl feature to ssl (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-auer authored Jul 28, 2020
1 parent 0126b8c commit 61b66b2
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ exclude = [
[workspace]

[features]
default = []
with_ssl = ["relay-server/with_ssl"]
default = ["ssl"]
ssl = ["relay-server/ssl"]
processing = ["relay-server/processing"]

[profile.release]
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ RUN echo "Building OpenSSL" \
FROM getsentry/sentry-cli:1 AS sentry-cli
FROM relay-deps AS relay-builder

ARG RELAY_FEATURES=with_ssl,processing
ARG RELAY_FEATURES=ssl,processing
ENV RELAY_FEATURES=${RELAY_FEATURES}

COPY --from=sentry-cli /bin/sentry-cli /bin/sentry-cli
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHELL=/bin/bash
export RELAY_PYTHON_VERSION := python3.7
export RELAY_FEATURES := with_ssl
export RELAY_FEATURES := ssl

all: check test
.PHONY: all
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ used for Relays operating as proxys. There are two optional features:
into a Kafka topic instead of forwarding to the configured upstream. Also, it
will perform full event normalization, filtering, and rate limiting.

- **`with_ssl`**: Enables SSL support in the Server.
- **`ssl`**: Enables SSL support in the Server.

To enable a feature, pass it to the cargo invocation. For example, to run tests
across all workspace crates with the `processing` feature enabled, run:
Expand Down
4 changes: 2 additions & 2 deletions relay-server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ license-file = "../LICENSE"
publish = false

[features]
default = ["with_ssl"]
with_ssl = ["native-tls", "actix-web/tls"]
default = []
ssl = ["native-tls", "actix-web/tls"]
processing = [
"minidump",
"rdkafka",
Expand Down
6 changes: 3 additions & 3 deletions relay-server/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub enum ServerErrorKind {
TlsInitFailed,

/// TLS support was not compiled in.
#[fail(display = "compile with the `with_ssl` feature to enable SSL support")]
#[fail(display = "compile with the `ssl` feature to enable SSL support")]
TlsNotSupported,

/// GeoIp construction failed.
Expand Down Expand Up @@ -235,7 +235,7 @@ where
)
}

#[cfg(feature = "with_ssl")]
#[cfg(feature = "ssl")]
fn listen_ssl<H, F>(
mut server: server::HttpServer<H, F>,
config: &Config,
Expand Down Expand Up @@ -271,7 +271,7 @@ where
Ok(server)
}

#[cfg(not(feature = "with_ssl"))]
#[cfg(not(feature = "ssl"))]
fn listen_ssl<H>(
server: server::HttpServer<H>,
config: &Config,
Expand Down

0 comments on commit 61b66b2

Please sign in to comment.