make a new profile for codegen-units = 1
This commit is contained in:
parent
a3f2eff512
commit
671105fe07
@ -11,5 +11,9 @@ members = [
|
|||||||
[profile.release]
|
[profile.release]
|
||||||
# `debug = true` so that sentry can give us line numbers
|
# `debug = true` so that sentry can give us line numbers
|
||||||
debug = true
|
debug = true
|
||||||
|
|
||||||
|
[profile.faster_release]
|
||||||
|
inherits = "release"
|
||||||
|
|
||||||
# spend longer compiling for a slightly faster binary
|
# spend longer compiling for a slightly faster binary
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
@ -61,10 +61,10 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
|||||||
cargo nextest run
|
cargo nextest run
|
||||||
|
|
||||||
# build the application
|
# build the application
|
||||||
# using the "--release" profile (which install does) is **very** important
|
# using a "release" profile (which install does) is **very** important
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry \
|
||||||
--mount=type=cache,target=/app/target \
|
--mount=type=cache,target=/app/target \
|
||||||
cargo install --locked --no-default-features --root /opt/bin --path ./web3_proxy
|
cargo install --locked --no-default-features --profile faster_release --root /opt/bin --path ./web3_proxy
|
||||||
|
|
||||||
#
|
#
|
||||||
# We do not need the Rust toolchain to run the binary!
|
# We do not need the Rust toolchain to run the binary!
|
||||||
|
Loading…
Reference in New Issue
Block a user