A cargo subcommand for publishing compressed a crate to a private registry (For example Crates-Registry).
To publish crates to a private registry you want to download the crate and its dependencies (you can use cargo collect
) then you can upload the files to your private registry with this subcommand.
cargo-upload can be installed via cargo:
$ cargo install cargo-upload
First config your private registry in the .cargo/config
file
[registries]
my-registry = { index = "https://my-intranet:8080/git/index" }
See Registries in the rust book for more information.
The command below can upload a single crate.
cargo upload --registry my-registry crate-file.crate
The command below can upload all crates in a folder.
cargo upload --registry my-registry ./my-crates
Run cargo upload --help
for more information.
In the future, we want to integrate this subcommand into the cargo repository.
The license GNU GENERAL PUBLIC LICENSE Version 3