GithubHelp home page GithubHelp logo

ddp74 / cargo-local-registry Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dhovart/cargo-local-registry

0.0 0.0 0.0 331 KB

A cargo subcommand to manage local registries

License: Apache License 2.0

Rust 100.00%

cargo-local-registry's Introduction

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.

cargo-local-registry's People

Contributors

dependabot-support avatar alexcrichton avatar dependabot-preview[bot] avatar chrisgreenaway avatar idubrov avatar mitsuhiko avatar kevincox avatar rushmorem avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.