#registry #private #upload #cargo #publishing #cargo-subcommand #registries

app cargo-upload

Cargo tool for upload crate files to private registry (like crates-registry)

6 releases

new 0.1.5 Oct 17, 2024
0.1.4 Sep 14, 2023
0.1.2 Apr 3, 2023
0.1.1 Mar 26, 2023

#269 in Cargo plugins

Download history 9/week @ 2024-09-23 172/week @ 2024-10-14

181 downloads per month

GPL-3.0 license

46KB
693 lines

Cargo Upload

Description

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.

Installation

cargo-upload can be installed via cargo:

$ cargo install cargo-upload

Usage

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.

Roadmap

In the future, we want to integrate this subcommand into the cargo repository.

License

The license GNU GENERAL PUBLIC LICENSE Version 3

Dependencies

~57–90MB
~1.5M SLoC