Add some instructions about cross-compiling

The configs are included, so might as well mention what to do
This commit is contained in:
Aleksei Voronov 2024-08-18 20:58:44 +02:00
parent b8d1fd7695
commit 3f79bad38f
1 changed files with 12 additions and 0 deletions

View File

@ -53,3 +53,15 @@ The feed will be available at http://localhost:3030/.
### Force a profile to be in a certain country ### Force a profile to be in a certain country
`cargo run --bin force_profile_country -- --help` `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