Some build tools require Python.
Install the appropriate Rust toolchain for your native OS/platform by following these instructions.
We are using the stable
toolchain only.
Many development tasks have been automated with recipes for
just
that can be found in .justfile
.
Install just
through cargo
:
cargo install just
The remaining setup of all build tooling is accomplished by running the following command:
just setup
Use the following command to build the web service as a standalone executable
cargo run --profile dev --package aoide-websrv
The following build profiles are available.
- Default
- Slow at runtime, only for development and debugging
- Executable:
target/debug/aoide-websrv
- Reasonably optimized and fast, both building and running
- Executable:
target/release/aoide-websrv
- Optimized for maximum speed at runtime
- Slow to build
- Executable:
target/production/aoide-websrv
The last settings are stored in a local configuration file and could be overridden by both
environment variables and a dotenv (.env
) file. Watch the log messages for details.
When started without any environment variables set the Launcher UI will appear. Set
LAUNCH_HEADLESS=true
to suppress the Launcher UI.