From 3f79bad38f317bb191c563d3c035352641486f99 Mon Sep 17 00:00:00 2001 From: Aleksei Voronov Date: Sun, 18 Aug 2024 20:58:44 +0200 Subject: [PATCH] Add some instructions about cross-compiling The configs are included, so might as well mention what to do --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 6e22183..b5524e0 100644 --- a/README.md +++ b/README.md @@ -53,3 +53,15 @@ The feed will be available at http://localhost:3030/. ### Force a profile to be in a certain country `cargo run --bin force_profile_country -- --help` + +## Cross-compiling on non-Linux machines to deploy on Linux + +1. Install `cross` by following their [installation guide](https://github.com/cross-rs/cross) + +2. Build the binaries in release mode: + + ``` + cross build --release + ``` + +3. Deploy the binaries in `target/x86_64-unknown-linux-gnu/release/` as you see fit