You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-6Lines changed: 11 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,11 @@
2
2
3
3
> Use same Docker image for compiling [Rust](https://www.rust-lang.org/) programs for Linux ([musl libc](https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html)) & macOS ([osxcross](https://github.com/tpoechtrager/osxcross)).
4
4
5
+
## OpenSSL Release Notes
6
+
7
+
Until `v1.42.0` of this project, one old OpenSSL release `v1.0.2` was used.
8
+
Now, since `v1.43.x` or greater, OpenSSL `v1.1.1` (LTS) is used which is supported until `2023-09-11`. View more at https://www.openssl.org/policies/releasestrat.html.
9
+
5
10
## Overview
6
11
7
12
This is a __Linux Docker image__ based on [ekidd/rust-musl-builder](https://hub.docker.com/r/ekidd/rust-musl-builder) but using [debian:buster-slim](https://hub.docker.com/_/debian?tab=tags&page=1&name=buster-slim). It contains essential tools for compile [Rust](https://www.rust-lang.org/) projects such as __Linux__ static binaries via [musl-libc / musl-gcc](https://doc.rust-lang.org/edition-guide/rust-2018/platform-and-target-support/musl-support-for-fully-static-binaries.html) (`x86_64-unknown-linux-musl`) and __macOS__ binaries (`x86_64-apple-darwin`) via [osxcross](https://github.com/tpoechtrager/osxcross) just using the same Linux image.
@@ -18,7 +23,7 @@ By default the working directory is `/root/src`.
18
23
docker run --rm \
19
24
--volume "${PWD}/sample":/root/src \
20
25
--workdir /root/src \
21
-
joseluisq/rust-linux-darwin-builder:1.42.0 \
26
+
joseluisq/rust-linux-darwin-builder:1.43.0 \
22
27
sh -c "cargo build --release"
23
28
```
24
29
@@ -28,7 +33,7 @@ docker run --rm \
28
33
docker run --rm \
29
34
--volume "${PWD}/sample":/root/src \
30
35
--workdir /root/src \
31
-
joseluisq/rust-linux-darwin-builder:1.42.0 \
36
+
joseluisq/rust-linux-darwin-builder:1.43.0 \
32
37
sh -c "cargo build --release --target x86_64-apple-darwin"
33
38
```
34
39
@@ -37,7 +42,7 @@ docker run --rm \
37
42
You can also use the image as a base for your own Dockerfile:
38
43
39
44
```Dockerfile
40
-
FROM joseluisq/rust-linux-darwin-builder:1.42.0
45
+
FROM joseluisq/rust-linux-darwin-builder:1.43.0
41
46
```
42
47
43
48
### Cross-compilation example
@@ -56,7 +61,7 @@ compile:
56
61
@docker run --rm -it \
57
62
-v $(PWD):/drone/src \
58
63
-w /drone/src \
59
-
joseluisq/rust-linux-darwin-builder:1.42.0 \
64
+
joseluisq/rust-linux-darwin-builder:1.43.0 \
60
65
make cross-compile
61
66
.PHONY: compile
62
67
@@ -81,12 +86,12 @@ Just run the makefile `compile` target, then you will see two release binaries `
0 commit comments