Rust Starter项目

rust-starter 是用于创建 Rust CLI 应用程序的启动模板。它包含参数解析和配置等一系列组件。它还提供了不同的工具来创建二进制文件或自动完成构建过程。「rust-starter is a starter boilerplate to create a Rust CLI application. It comes with a battery of components like argument parsing and configuration. It also has different tooling to create your binary, or automate your build process.」

  • 所有者: rust-starter/rust-starter
  • 平台: Linux,Mac,Windows,Docker
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

license Gitter
Tests
Build
codecov

Website

rust-starter is a starter boilerplate to create a Rust CLI application. It comes with a battery of components like argument parsing and configuration. It also has different tooling to create your binary, or automate your build process.

Table of Contents

What's New?

Version 2.0.0

What's new in Version 2.0?

  • Upgrade to Clap 4.x
  • Shell Completion
  • Merge AppConfig with Clap/Cli arguments
  • use ConfigBuilder instead of Config
  • rustfmt update
  • Github release action

Planned for a 2.x release

  • Journald/Syslog as features
  • Fix CI/CD actions and Docker image

About

rust-starter is an empty Rust CLI application with libraries, and few defaults. The goal is to help you bootstrap your next CLI project as quickly as possible while ensuring you make use of the best tools and best-practices that are available today.

There is no configuration required (though we recommend you check all the possible configurations possible). An empty clone will compile, and has a few sample commands. You can start coding right away!

FAQ

For the Full FAQ, check the website

Features

  • Clap for Command Line Argument parsing.
  • Error Chaining with Failure.
  • Configuration management with config-rs.
  • Multi-Drain, async Logging with slog.
  • Static binaries with rust-musl-builder.
  • CI/CD through Github actions.
  • Code Coverage, Justfile, etc..
  • MIT License.

Quick Bootstrapping

rust-starter should compile and run as is. You just need to clone the repository. A cargo-generate template is also available. For a more detailed introduction, check the Getting Started guide.

How to Contribute

Details on how to contribute can be found in the CONTRIBUTING.md file.

Versioning

Rust Starter stricltly adheres to the SemVer Semantic Versioning.

License

rust-starter is licensed under the MIT license. Please read the LICENSE file in this repository for more information.

主要指標

概覽
名稱與所有者rust-starter/rust-starter
主編程語言Rust
編程語言Rust (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2019-03-29 21:47:21
推送於2025-06-17 04:11:45
最后一次提交2025-05-07 14:13:12
發布數6
最新版本名稱2.0.1 (發布於 )
第一版名稱0.0.1 (發布於 )
用户参与
星數438
關注者數8
派生數46
提交數283
已啟用問題?
問題數23
打開的問題數0
拉請求數22
打開的拉請求數2
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?