2025-07-24 22:27:13 -06:00
|
|
|
# alr
|
|
|
|
|
|
|
|
|
|
> Ada package manager.
|
|
|
|
|
> Manage Ada toolchains, dependencies, tools and libraries.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://alire.ada.dev/docs/#first-steps>.
|
2025-07-24 22:27:13 -06:00
|
|
|
|
|
|
|
|
- Create a binary or library project:
|
|
|
|
|
|
|
|
|
|
`alr init {{--bin|--lib}} {{project_name}}`
|
|
|
|
|
|
|
|
|
|
- Add a dependency to the project:
|
|
|
|
|
|
|
|
|
|
`alr add {{crate}}`
|
|
|
|
|
|
|
|
|
|
- Run the compiled binary (no need to do `build` before):
|
|
|
|
|
|
|
|
|
|
`alr run`
|
|
|
|
|
|
|
|
|
|
- Compile the project:
|
|
|
|
|
|
|
|
|
|
`alr build {{--release|--development|--validation}}`
|