| Crates.io | jlrs-launcher |
| lib.rs | jlrs-launcher |
| version | 0.1.0 |
| created_at | 2025-10-09 19:05:24.534343+00 |
| updated_at | 2025-10-09 19:05:24.534343+00 |
| description | A juliaup-aware launcher for projects that use jlrs |
| homepage | https://github.com/Taaitaaiger/jlrs-launcher |
| repository | https://github.com/Taaitaaiger/jlrs-launcher |
| max_upload_size | |
| id | 1876090 |
| size | 99,548 |
A juliaup-aware launcher for projects that use jlrs.
When you use juliaup to manage your Julia installations it can be quite challenging to use jlrs; you need to figure out where everything has been installed, which is a detail that juliaup is trying to hide from you. This can be problematic whenever you try to run or compile such a project. Since juliaup is written in Rust and is published as a crate, it's possible to reuse its logic to declare and locate a specific Julia version, and launch an application with the appropriate environment variables set to their proper value, similar to how juliaup launches Julia itself.
This application can be installed with cargo:
cargo install jlrs-launcher
jlrs-launcherjlrs-launcher supports three commands: help, print-env, and run. The first prints some helpful information, the second prints the additionally set environment variables, and the last runs a commands in a process with the updated environment.
When jlrs-launcher run is used, the installation of Julia that must be used can be set with +version just as juliaup's julia launcher and cargo:
jlrs-launcher run +1.11 cmd
Any argument provided after -- is propagated to the launched application:
jlrs-launcher run +1.11 cargo test -- --features full,ccall
calls
cargo test --features full,ccall
in the appropriate environment.