Skip to content

"PyPi simple"-like directory based registry support. #12293

@evan0greenup

Description

@evan0greenup

Problem

Currently, when user want to setup his own registry, the procedures is very complicated.

For just specifying package name and version number, a simple directory based crate tarball collection set is adequate.

Proposed Solution

Considering this directory:

hello_reg/
├── goodbye
│   ├── goodbye-0.23.12.crate
│   └── goodbye-1.0.1.crate
└── helloworld
    ├── helloworld-0.0.1.crate
    └── helloworld-0.1.0.crate

It would be good to add Cargo feature to add dependencies from hello_reg/ directory. The version resolution is automatically done by Cargo like other type of registry or dependency. And the version wildcard is also supported.

Notes

This feature can make private dependency for private Rust project much more simpler.

Beside a local directory, it can also be a remote FTP URL or HTTP/HTTPS URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-registriesArea: registriesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-needs-infoStatus: Needs more info, such as a reproduction or more background for a feature request.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions