Problem
rust-lang/rfcs#3516 calls for controlling the new public field in cargo add
Proposed Solution
Add --public and --no-public flags. This will mirror --optional / --no-optional
Test cases
- Ability to add a new dep that is a public dependency
- Able to turn an existing private dep into a public dep
- Able to turn an existing public dep into a private dep
See the test cases for --optional for patterns in naming, etc.
Notes
The RFC called for --public <bool>. ... I don't remember why I did that. I think it might have been due to some aspects of a previous design of the RFC and I forgot to update it. We can note this in the tracking issue for us to approve this deviation.
Problem
rust-lang/rfcs#3516 calls for controlling the new
publicfield incargo addProposed Solution
Add
--publicand--no-publicflags. This will mirror--optional/--no-optionalTest cases
See the test cases for
--optionalfor patterns in naming, etc.Notes
The RFC called for
--public <bool>. ... I don't remember why I did that. I think it might have been due to some aspects of a previous design of the RFC and I forgot to update it. We can note this in the tracking issue for us to approve this deviation.