1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-27 09:54:32 +01:00

Merge pull request 'docs: cross compile' (#226) from cross-compile into master

Reviewed-on: https://git.koesters.xyz/timo/conduit/pulls/226
This commit is contained in:
Timo Kösters 2020-10-18 13:03:18 +02:00
commit fbbf9f8999
3 changed files with 24 additions and 0 deletions

13
CROSS_COMPILE.md Normal file
View file

@ -0,0 +1,13 @@
Install docker:
$ sudo apt install docker
$ sudo usermod -aG docker $USER
Then log out and back in.
$ sudo systemctl start docker
$ cargo install cross
$ cross build --release --features tls_vendored --target armv7-unknown-linux-musleabihf
The cross-compiled binary is at target/armv7-unknown-linux-musleabihf/release/conduit

10
Cargo.lock generated
View file

@ -1136,6 +1136,15 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de"
[[package]]
name = "openssl-src"
version = "111.12.0+1.1.1h"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "858a4132194f8570a7ee9eb8629e85b23cbc4565f2d4a162e87556e5956abf61"
dependencies = [
"cc",
]
[[package]]
name = "openssl-sys"
version = "0.9.58"
@ -1145,6 +1154,7 @@ dependencies = [
"autocfg",
"cc",
"libc",
"openssl-src",
"pkg-config",
"vcpkg",
]

View file

@ -62,6 +62,7 @@ trust-dns-resolver = "0.19.5"
[features]
default = ["conduit_bin"]
conduit_bin = [] # TODO: add rocket to this when it is optional
tls_vendored = ["reqwest/native-tls-vendored"]
[[bin]]
name = "conduit"