Skip to content

Commit

Permalink
feat: replace openssl with rustls
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobLinCool committed Jun 1, 2023
1 parent 875518d commit a48f017
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ base64 = "0.21.0"
clap = { version = "4.2.7", features = ["derive", "string"] }
http-cache-reqwest = "0.9.0"
jsonwebtoken = "8.3.0"
reqwest = "0.11.18"
reqwest = { version = "0.11.18", default-features = false, features = ["rustls", "tokio-rustls"] }
reqwest-middleware = "0.2.2"
rocket = { version = "0.5.0-rc.3", features = ["json"] }
serde = "1.0.163"
Expand All @@ -40,3 +40,6 @@ wasmer-wasix = "0.4.0"

[build-dependencies]
vergen = { version = "8.1.3", features = ["build", "cargo", "git", "gitcl", "rustc", "si"] }

[patch.crates-io]
reflink = { git = "https://github.com/JacobLinCool/reflink.git" }
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true

RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
apk update && \
apk add --no-cache musl-dev git pkgconfig openssl-dev
apk add --no-cache musl-dev git

RUN mkdir /tmp/tempproj && \
cd /tmp/tempproj && \
Expand All @@ -22,8 +22,6 @@ FROM alpine as runtime

WORKDIR /app

RUN apk add --no-cache openssl

COPY --from=builder /app/target/release/wark /app/wark

ENTRYPOINT ["/app/wark"]

0 comments on commit a48f017

Please sign in to comment.