项目作者: gengteng

项目描述 :
[WIP] A full-featured registry server for Cargo.
高级语言: Rust
项目地址: git://github.com/gengteng/silkroad.git
创建时间: 2019-06-21T11:52:50Z
项目社区:https://github.com/gengteng/silkroad

开源协议:MIT License

下载


SilkRoad(skrd)

Introduction

A full-featured registry server for Cargo.

Status

[WIP] Most features have not been implemented yet.

RoadMap

  • Serve an index repository and all crates
    • HTTP server
      • The Dumb Protocol
      • The Smart Protocol(except git-receive-pack)
      • HTTPS
    • Git server
    • No dependency on git
    • Registry Web API (Login, Publish and so on)
      • Login
      • Publish
      • Yank & Unyank
      • Owners
  • Mirroring
    • Index clone and sync
    • Crates download
    • Parallel download
    • Timer
  • Server Migration
    • Package
    • Unpackage
  • Homepage (An Angular based SPA?)

Dependencies

  • Git 2+

Usage

Installation

  1. $ cargo install silkroad

Create a mirror

This command will create a mirror of source in the path directory.

  1. $ skrd mirror <path> [source]

Examples:

  1. $ skrd mirror mymirror https://mirrors.ustc.edu.cn/crates.io-index
  1. $ skrd mirror official #default source = https://github.com/rust-lang/crates.io-index

Update a mirror

  1. $ skrd update <path>

Example:

  1. $ skrd update mymirror
  1. $ skrd update # in mymirror

Serve

  1. $ skrd serve <path>

Example:

  1. $ skrd serve mymirror
  1. $ skrd serve # in mymirror

References

License

SilkRoad is under the MIT license. See the LICENSE file for details.