From abd65ec04e4191a830b8ec2ab248378d73bc3300 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 27 Apr 2024 03:50:05 +0200 Subject: [PATCH] document the "release_*" features --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 95efb3c..7747199 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,14 @@ echo '' > w python -m http.server -d wasm ``` +## Building release versions optimized for packaging + +To build release versions optimized for final deployment, build with the following features: (see also [pack.sh](https://codeberg.org/hut/outfly/src/branch/main/src/build/pack.sh)) + +``` +cargo build --release --no-default-features --features release_[linux|windows] [--target=$YOUR_TARGET] +``` + ## Dev Features For development, it's recommended to use `--features dev`: