document the "release_*" features

This commit is contained in:
yuni 2024-04-27 03:50:05 +02:00
parent 77bc8ee8e1
commit abd65ec04e

View file

@ -199,6 +199,14 @@ echo '<script type="module">import init from "./outfly.js"; init()</script>' > w
python -m http.server -d wasm 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 ## Dev Features
For development, it's recommended to use `--features dev`: For development, it's recommended to use `--features dev`: