keep RUSTFLAGS in one place

This commit is contained in:
Bryan Stitt 2022-05-17 16:36:42 +00:00
parent 19d0601862
commit c1144e5e42
2 changed files with 2 additions and 4 deletions

@ -1,2 +1,3 @@
[build]
rustflags = ["--cfg", "tokio_unstable"]
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
rustflags = ["-C", "target-cpu=native", "--cfg", "tokio_unstable"]

@ -1,8 +1,5 @@
FROM rust:1-bullseye as builder
# potentially faster. https://nnethercote.github.io/perf-book/build-configuration.html
ENV RUSTFLAGS "-C target-cpu=native"
WORKDIR /usr/src/web3-proxy
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \