Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
TOwInOK committed Oct 27, 2024
1 parent 4549d6b commit 70fc2f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,18 @@ tracing-subscriber = "0.3.18"
url = "2.5.2"

[profile.test]
opt-level = 0
opt-level = 'z'
debug = true

[profile.dev]
opt-level = 1
opt-level = 's'
debug = true

[profile.release]
strip = true
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
debug = false
panic = "unwind"
[target.x86_64-unknown-linux-musl]
rustflags = ["-C", "target-feature=+crt-static"]
linker = "gcc"
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
FROM alpine:latest AS base

ENV PATH="/root/.cargo/bin:${PATH}"
# ENV PATH="/root/.cargo/bin:${PATH}"

ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
ENV CARGO_HTTP_MULTIPLEXING=false
ENV RUST_TARGET=x86_64-unknown-linux-musl
ENV RUSTFLAGS="-C target-feature=+crt-static"
ENV CC="gcc"
ENV AR="ar"
ENV CFLAGS="-I/usr/include"
ENV LDFLAGS="-L/usr/lib"
ENV PKG_CONFIG_ALLOW_CROSS=1
ENV OPENSSL_STATIC=1
ENV OPENSSL_DIR=/usr
Expand Down

0 comments on commit 70fc2f2

Please sign in to comment.