Skip to content

A cargo subcommand for publishing compressed a crate to a private registry.

License

Notifications You must be signed in to change notification settings

TalRoni/cargo-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A cargo subcommand for publishing compressed a crate to a private registry.

Resources

License

Stars

Watchers

Forks

Languages