Skip to content

Commit cdfe4a0

Browse files
authored
feat: use debug_assertions instead of custom feature (#1104)
1 parent 6c5f2aa commit cdfe4a0

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Cargo.toml

-3
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ arrow = "53.0.0"
142142
assets-url = "https://github.com/parseablehq/console/releases/download/v0.9.18/build.zip"
143143
assets-sha1 = "4516db38c8e556707b29b33569f9b1e53d5165f2"
144144

145-
[features]
146-
debug = []
147-
148145
[profile.release-lto]
149146
inherits = "release"
150147
lto = "fat"

Dockerfile.debug

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LABEL org.opencontainers.image.licenses="AGPL-3.0"
2323

2424
WORKDIR /parseable
2525
COPY . .
26-
RUN cargo build --features debug
26+
RUN cargo build
2727

2828
# final stage
2929
FROM docker.io/debian:bookworm-slim

src/handlers/http/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub fn metrics_path() -> String {
5656
}
5757

5858
pub(crate) fn cross_origin_config() -> Cors {
59-
if !CONFIG.options.cors || cfg!(feature = "debug") {
59+
if !CONFIG.options.cors || cfg!(debug_assertions) {
6060
Cors::permissive().block_on_origin_mismatch(false)
6161
} else {
6262
Cors::default().block_on_origin_mismatch(false)

0 commit comments

Comments
 (0)