Skip to content

Add download-modules-json dev command#454

Merged
Larusso merged 1 commit intomasterfrom
aux/download_modules_json_command
Mar 6, 2026
Merged

Add download-modules-json dev command#454
Larusso merged 1 commit intomasterfrom
aux/download_modules_json_command

Conversation

@Larusso
Copy link
Owner

@Larusso Larusso commented Mar 6, 2026

Description

Adds a download-modules-json subcommand to uvm for development and debugging purposes. The command fetches the modules.json payload for a given Unity version, platform, and architecture from the Unity release API and writes it to stdout or a file — without performing an install.

Changes

  • ![ADD] dev-commands feature flag to uvm/Cargo.toml
  • ![ADD] serde_json as optional dependency activated by dev-commands
  • ![ADD] uvm/src/commands/download_modules_json.rs with --platform, --architecture, and --output arguments
  • ![UPDATE] uvm/src/commands/mod.rs and uvm/src/main.rs to register the command behind #[cfg(feature = "dev-commands")]

## Description

Adds a `download-modules-json` subcommand to `uvm` for development and
debugging purposes. The command fetches the modules.json payload for a
given Unity version, platform, and architecture from the Unity release
API and writes it to stdout or a file — without performing an install.

## Changes

* ![ADD] `dev-commands` feature flag to `uvm/Cargo.toml`
* ![ADD] `serde_json` as optional dependency activated by `dev-commands`
* ![ADD] `uvm/src/commands/download_modules_json.rs` with `--platform`, `--architecture`, and `--output` arguments
* ![UPDATE] `uvm/src/commands/mod.rs` and `uvm/src/main.rs` to register the command behind `#[cfg(feature = "dev-commands")]`
@Larusso Larusso merged commit 8f7a147 into master Mar 6, 2026
8 checks passed
@Larusso Larusso deleted the aux/download_modules_json_command branch March 6, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant