Extend Rust cli gen, multi module support#88
Merged
Merged
Conversation
ebourgeois
reviewed
Mar 21, 2026
7fcc665 to
a3b1fb9
Compare
3504b17 to
c76714a
Compare
Signed-off-by: Daniel Guns <danbguns@gmail.com>
ebourgeois
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Daniel Guns danbguns@gmail.com
This PR expands Firestone’s Rust CLI generation for multi-source, modular workflows.
It adds per-resource
client_pkg,namespace,singular, and cross-cratemodel_pkg_overridessupport so resources from different OpenAPIsources can be combined into a single generated CLI without naming or model-resolution conflicts.
It also updates the Rust templates so each generated resource module is self-contained, initializes its own client configuration, and can be
wired into a hand-rolled
main.rs. For modular Rust generation (cli --language rust --as-modules), Firestone now also emits a helperCargo.tomlthat includes the required client-crate dependencies.Along the way, this improves generated Rust type handling and enum naming, and adds test coverage for multi-source generation, module-name
collision detection, Cargo dependency generation, and cross-crate model references.
The primary focus of this PR is Rust modular CLI generation. The goal is to make multi-project, multi-client Rust CLIs easier to compose,
safer to extend, and clearer to integrate into custom binaries.