diff --git a/Cargo.toml b/Cargo.toml index 4781aaa60e..77abfba7ed 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -71,5 +71,5 @@ members = [ ] [profile.release] -debug = 1 +debug = 2 lto = true diff --git a/Dockerfile b/Dockerfile index 6fae252856..e5f7d2a038 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ COPY . . RUN --mount=type=cache,id=cargo,target=/usr/local/cargo/registry \ just fetch ENV CARGO_INCREMENTAL=0 -ENV RUSTFLAGS="-D warnings -A deprecated -C debuginfo=2" +ENV RUSTFLAGS="-D warnings -A deprecated" ARG TARGETARCH="amd64" ARG PROFILE="release" ARG LINKERD2_PROXY_VERSION=""