RC-freighter
简介
freighter: A fast, modular, and operationally boring Rust private registry implementation.
分层
Command Line: 包装的cli调用start http server
HTTP Server: 提供http server
API Types: 提供http server的一些类型
Index Provider: 提供索引,backend也有多种实现fs/pg
Auth Provider: 提供权限的校验,backend有多种实现 fs/no/yes/cloudflare
API Client 包装的cli发送http request
Crates
cfg-if
GitHub - rust-lang/cfg-if: A if/elif-like macro for Rust #[cfg] statements
Semver
GitHub - dtolnay/semver: Parser and evaluator for Cargo's flavor of Semantic Versioning
mertics-prometheus-rs
prometheus
backend for metrics
crate
tempfile
tempfile
A secure, cross-platform, temporary file library for Rust. In addition to creating temporary files, this library also allows users to securely open multiple independent references to the same temporary file (useful for consumer/producer patterns and surprisingly difficult to implement securely).
NamedTempFile in tempfile - Rust
防止用户使用软件清理掉tempfile