Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo add --workspace for workspace deps #836

Closed
tqwewe opened this issue Jan 26, 2023 · 1 comment
Closed

cargo add --workspace for workspace deps #836

tqwewe opened this issue Jan 26, 2023 · 1 comment

Comments

@tqwewe
Copy link

tqwewe commented Jan 26, 2023

cargo add currently supports the following "sections":

Section:
      --dev
          Add as development dependency
          
          Dev-dependencies are not used when compiling a package for building, but are used for compiling tests, examples, and benchmarks.
          
          These dependencies are not propagated to other packages which depend on this package.

      --build
          Add as build dependency
          
          Build-dependencies are the only dependencies available for use by build scripts (`build.rs` files).

      --target <TARGET>
          Add as dependency to the given target platform

It would be nice if an additional section was added called --workspace, which adds the dependency under [workspace.dependencies].

@epage
Copy link
Collaborator

epage commented Jan 26, 2023

FYI cargo add now lives in cargo

The relevant issue for this is rust-lang/cargo#10608

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
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

No branches or pull requests

2 participants