Skip to content

Conversation

ctaggart
Copy link
Contributor

When working on AutoRust, it is very useful to limit the code generation to a crate or two. It is also helpful to limit the workspace to just the generated crates. That is what this PR does.

cargo run --release -p azure-autorust -- -p azure_svc_blobstorage -p azure_mgmt_vmware

Generates this workspace:

[workspace]
members = [
  "svc/blobstorage",
  "mgmt/vmware",
]

This makes Rust Analyzer much happier.

Copy link
Contributor

@rylev rylev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@cataggar cataggar added the CodeGen Issues that relate to code generation label Aug 11, 2022
@cataggar cataggar merged commit 384f09e into Azure:main Aug 11, 2022
@ctaggart ctaggart deleted the small-workspace branch September 7, 2022 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CodeGen Issues that relate to code generation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants