Development Build
Release Build
Selective Module Compilation
Only compile the modules you need — dramatically reduces binary size:Feature Flags
| Flag | Module | Dependencies |
|---|---|---|
mod_math | math | rand |
mod_json | json | (core dep) |
mod_os | os | (std only) |
mod_env | env | dotenvy |
mod_date | date | chrono |
mod_http | http | reqwest |
mod_database | database (HelixDB) | redb |
mod_database_sql | sql | sqlx |
mod_discord | discord | serenity, poise |
mod_openai | openai | reqwest |
mod_hash | hash | (crypto) |
Cross-Compilation
Use the includedbuild.sh script. Requires:
- zig for the cross-compilation linker
- cargo-zigbuild (
cargo install cargo-zigbuild)
Targets
| Target | OS | Arch |
|---|---|---|
x86_64-unknown-linux-gnu | Linux | AMD64 |
aarch64-unknown-linux-gnu | Linux | ARM64 |
x86_64-apple-darwin | macOS | AMD64 |
aarch64-apple-darwin | macOS | ARM64 (Apple Silicon) |
x86_64-pc-windows-gnu | Windows | AMD64 |
aarch64-pc-windows-gnu | Windows | ARM64 |
build/.