Add option to use with zigbuild

Signed-off-by: Jacob Kiers <code@kiers.eu>
This commit is contained in:
2024-02-22 16:36:20 +01:00
parent f6fb48e08c
commit 7a96634b5a
4 changed files with 125 additions and 12 deletions

View File

@@ -9,14 +9,17 @@ By default, it uses the latest [Rust][2] and [`cross`][3] versions.
## Usage
```
USAGE: ./build.sh <slim|full> [rust version] [cross version]
USAGE: ./build.sh <slim|full|zig> [rust version] [cross version] [zig version]
Arguments:
<slim|full> Slim build (without targets) or Full build (with targets)
[rust version] Version of rust (https://github.com/rust-lang/rust)
[cross version] Version of cross (https://github.com/cross-rs/cross)
<slim|full> Slim build (without targets) or Full build (with targets)
Both versions default to the latest version.
[rust version] Version of rust (https://github.com/rust-lang/rust)
[cross version] Version of cross (https://github.com/cross-rs/cross)
[zig version] Version of zig (https://ziglang.org/download)
Use 'master' for master version of zig
All versions default to the latest release.
```
[1]: https://code.kiers.eu/newsletter-to-web/newsletter-to-web