Crates.io | cargo-upload |
lib.rs | cargo-upload |
version | 0.1.5 |
source | src |
created_at | 2023-03-20 15:43:54.757656 |
updated_at | 2024-10-17 21:11:04.654138 |
description | Cargo tool for upload crate files to private registry (like crates-registry) |
homepage | https://github.com/TalRoni/cargo-upload |
repository | https://github.com/TalRoni/cargo-upload |
max_upload_size | |
id | 815388 |
size | 162,407 |
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