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?
已存档?
是复刻?
已锁定?
是镜像?
是私有?