Skip to content

Proposal: Option to add a crate with all items marked as pub #155

@actuday6418

Description

@actuday6418

My Primary use case for irust is to test/play with crates I'm working on with :add --path. One annoying part of this is having to edit the source file and set an item's visibility to pub every time I want to access it. It would be great to have the option to add a crate with all items marked as pub automatically.

I think we can do this by copying the source code to a temporary directory and using syn and prettyplease on all .rs files to change the visibility of all items before the call to cargo add.

If this is something that the project is open to, I can make a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions