Skip to content

Adds a customization to default to workspace or local crate.#546

Merged
psibi merged 2 commits intorust-lang:masterfrom
bradneuman:workspace-local
May 20, 2024
Merged

Adds a customization to default to workspace or local crate.#546
psibi merged 2 commits intorust-lang:masterfrom
bradneuman:workspace-local

Conversation

@bradneuman
Copy link
Contributor

Adds rust-locate-project-in-workspace custom variable, which controls whether or not to locate the workspace project using --workspace (the default) or not.

In cases where there is only one create, this should make no difference.

The default setting should match the existing behavior.

Github issue #545

Adds rust-locate-project-in-workspace custom variable, which controls whether or not to locate the workspace
project using `--workspace` (the default) or not.

In cases where there is only one create, this should make no difference.

The default setting should match the existing behavior.

Github issue rust-lang#545
@bradneuman bradneuman changed the title Adds a customization to default to workspace or local crate. Adds a customization to default to workspace or local crate. May 14, 2024
@bradneuman bradneuman changed the title Adds a customization to default to workspace or local crate. Adds a customization to default to workspace or local crate. May 14, 2024
rust will search for the Cargo.toml in the local crated"
:type 'boolean
:group 'rust-mode)

Copy link
Member

Choose a reason for hiding this comment

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

How about we change this to rust-cargo-locate-default-arguments ? It's default value could be (list "--workspace"). For your specific use case, you can pass it as nil.

This will give you the ability to pass any arbitrary arguments to locate-project.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@psibi psibi merged commit d00d83d into rust-lang:master May 20, 2024
@psibi
Copy link
Member

psibi commented May 20, 2024

Thank you!

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.

2 participants