知识卡片

普通读书笔记卡 · 6076.a.1

版本号传达兼容性承诺

理解等级:中级

MAJOR.MINOR.PATCH分别表达不兼容变更、兼容新增和兼容修复,已发布版本内容应保持不变,改动另发版本。Cargo对0.x按最左非零分量划兼容范围,例如0.2到0.3可不兼容。版本号是维护者的承诺与判断,不能替代实际兼容验证。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 4. Dependencies Semver Essentials · 查看原书依据

      Semver Essentials The essentials of semantic versioning are listed in the summary in the semver documentation, reproduced here: Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes MINOR version when you add functionality in a backward compatible manner PATCH version when you make backward compatible b

    参考来源

    - 位置:《Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)》第4章《Semver Essentials》(spine8;extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch04.html;u115-ch04-002)。 - 结论依据:原文在“Semver Essentials”附近的定义、例子或代码支撑本卡核心说明:MAJOR.MINOR.PATCH分别表达不兼容变更、兼容新增和兼容修复,已发布版本内容应保持不变,改动另发版本。边界按已读前提解释;示例未执行。 - 原始内容:Semver Essentials The essentials of semantic versioning are listed in the summary in the semver documentation, reproduced here: Given a version number MAJOR.MINOR.PATCH, increment the: MAJOR version when you make incompatible API changes MINOR version when you add functionality in a backward compatible manner PATCH version when you make backward compatible b