cargo-local-registry

A cargo subcommand to manage local registries

  • 所有者: dhovart/cargo-local-registry
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

cargo local-registry

Build Status
Build status

This is a Cargo subcommand to ease maintenance of local registries. Support for
a local registry is being added in
rust-lang/cargo#2361 and will be
able to redirect all Cargo downloads/requests to a registry stored locally.

This support is often useful for "offline builds" by preparing the list of all
Rust dependencies ahead of time and shipping them to a build machine in a
pre-ordained format. A local registry is an index and a collection of tarballs,
all of which currently originate from crates.io.

The purpose of this subcommand will be to manage these registries and allow
adding/deleting packages with ease.

Installation

To install from source you can execute:

cargo install cargo-local-registry

Note that you'll need the build tools listed below for this to succeed. If you'd
prefer to download precompiled binaries assembled on the CI for this repository,
you may also use the GitHub releases

Building

As part of the build process you will need gcc, openssl and cmake in your
PATH.

Afterwards you can build this repository via:

cargo build

And the resulting binary will be inside target/debug

Usage

One of the primary operations will be to create a local registry from a lock
file itself. This can be done via

cargo local-registry --sync path/to/Cargo.lock path/to/registry

This command will:

  • Download all dependencies from the crates.io registry
  • Verify all checksums of what's downloaded
  • Place all downloads in path/to/registry
  • Prepare the index of path/to/registry to reflect all this information

License

This project is licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in cargo-local-registry by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.

主要指标

概览
名称与所有者dhovart/cargo-local-registry
主编程语言Rust
编程语言Rust (语言数: 1)
平台
许可证Apache License 2.0
所有者活动
创建于2016-02-12 23:03:00
推送于2025-05-30 08:42:38
最后一次提交2025-05-30 04:42:38
发布数13
最新版本名称v0.2.7 (发布于 2024-08-02 10:50:35)
第一版名称0.1.1 (发布于 )
用户参与
星数153
关注者数3
派生数19
提交数220
已启用问题?
问题数47
打开的问题数16
拉请求数131
打开的拉请求数3
关闭的拉请求数17
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?