You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--optional Add as an optional dependency (for use in features). This does not work
for `dev-dependencies` or `build-dependencies`.
Why is this? Several of my projects have a build dependency that is optional, and I always have to move things around manually since cargo add has this limitation.
The text was updated successfully, but these errors were encountered:
Oh, interesting. I think I've only tried to do it with build dependencies, and it definitely works for that. (Here's an example.) Maybe Cargo only disallows optional dependencies for dev dependencies.
Why is this? Several of my projects have a build dependency that is optional, and I always have to move things around manually since
cargo add
has this limitation.The text was updated successfully, but these errors were encountered: