Apache License 2.0

项目介绍

crate-ci/cargo-release 是一个托管在 GitHub 上的开源项目,主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前获得 1.6k 个 Star、139 次 Fork。

仓库全名
crate-ci/cargo-release
开源许可证
Apache License 2.0
Star 数
1.6k
Fork 数
139
未关闭 Issue
70

README 摘要

cargo release Streamline your crate release process cargo release extends cargo publish with common release practices like validation, version management, tagging, and pushing. The process is customizable but with defaults that should help you get up and running quickly. Features include: Ensure you are in a good state for release, including: Right branch Up-to-date with remote Clean tree Supports workspaces using…

完整内容见 GitHub 原始 README 或本页 。

常见问题

cargo-release 用什么语言开发?

主要使用 Rust 编写,采用 Apache License 2.0 许可证,目前有 1.6k 个 Star。

cargo-release 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 cargo-release 的源码?

可以直接克隆仓库:git clone https://github.com/crate-ci/cargo-release.git,默认分支为 main;安装与运行步骤见仓库 README。

cargo-release 最近还在维护吗?

仓库最近一次更新为 6 天前,当前有 70 个未关闭 Issue;Star 数为 1.6k,可作为社区活跃度的参考。

简要分析

热度分
1883
价值分
997
活跃状态
活跃

语言占比

Rust
Shell

Release

README

cargo release

Streamline your crate release process

cargo release extends cargo publish with common release practices like validation, version management, tagging, and pushing. The process is customizable but with defaults that should help you get up and running quickly.

Features include:

  • Ensure you are in a good state for release, including:
    • Right branch
    • Up-to-date with remote
    • Clean tree
  • Supports workspaces using cargo’s native flags, like --workspace, --exclude and --package
    • Updates dependent crates in workspace when changing version
    • Change detection to help guide in what crates might not need a release
    • Optionally share commits
  • Handles cargo publish, tagging, and pushing
  • Pre-release search and replace for custom version updates, including
  • Pre-release hook for extra customization, including

Install

Current release: 1.1.7

$ cargo install cargo-release

Usage

$ cargo release [level]
<dry-run output>
$ cargo release [level] --execute
  • See the reference for more on level, other CLI arguments, and configuration file format.
  • See also the FAQ for help in figuring out how to adapt cargo-release to your workflow.

Prerequisite

  • Your project should be managed by git.

Dry run

By default, cargo-release runs in dry-run mode so you can safely run it and verify what it will do.

  • Increase the logging level with each additional -v to get more details
  • Speed up dry-run by skipping cargo-publishs verify step with --no-verify

Once you are ready, pass the --execute flag.

Note: the packaging and verifying steps will list the current version and not the bumped version because cargo release delegates to cargo publish which does not know about the in-memory-only version bump (#890).

Semver Compatibility

cargo-release’s versioning tracks compatibility for the binaries, not the API. We upload to crates.io to distribute the binary. If using this as a library, be sure to pin the version with a = version requirement operator.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without any additional terms or conditions.

评论

暂无评论