cargo-upload

Crates.iocargo-upload
lib.rscargo-upload
version0.1.5
sourcesrc
created_at2023-03-20 15:43:54.757656
updated_at2024-10-17 21:11:04.654138
descriptionCargo tool for upload crate files to private registry (like crates-registry)
homepagehttps://github.com/TalRoni/cargo-upload
repositoryhttps://github.com/TalRoni/cargo-upload
max_upload_size
id815388
size162,407
TalYRoni (TalRoni)

documentation

README

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

Commit count: 34

cargo fmt