From 89eced385f99d031f0bbbe8bf8633e2ae006c3cd Mon Sep 17 00:00:00 2001 From: Vehbi Sinan Tunalioglu Date: Mon, 18 Apr 2022 00:57:30 +0800 Subject: [PATCH] chore(docs): add instructions for cross-compilation --- README.md | 37 +++++++++++++++++++++++++++---------- 1 file changed, 27 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 8318f0f..9d03985 100644 --- a/README.md +++ b/README.md @@ -14,20 +14,37 @@ ## Installation 1. Install [rclone](https://rclone.org/install/) -2. Put `rrclone` onto `$PATH` +1. Put `rrclone` onto `$PATH` ## Usage 1. Configure rclone -2. Prepare configuration file for `rrclone`. -3. Run `rrclone` in dry-run mode: - ```sh - rrclone ./config.yaml --dry-run - ``` -4. Run rrclone: - ```sh - rrclone ./config.yaml - ``` +1. Prepare configuration file for `rrclone`. +1. Run `rrclone` in dry-run mode: + + ```sh + rrclone ./config.yaml --dry-run + ``` + +1. Run rrclone: + + ```sh + rrclone ./config.yaml + ``` + +## Cross Compilation + +Install [cross](https://github.com/cross-rs/cross): + +```sh +cargo install -f cross +``` + +Cross compile, for example for Linux on aarch64: + +```sh +cross build --target aarch64-unknown-linux-gnu --release +``` ## License