“除非被迫,否则我们从不更新” —— cargo-semver-checks 2024 年度回顾

  • cargo-semver-checks in 2024: Ended 2024 with significant improvements. 12 new releases had 63 new lints, and 1175 merged PRs from 57 authors. Funded by various entities like the Rust Foundation Fellowship Program, Amazon, etc.

    • Goal: Fearless cargo update, as currently updating deps is like Rustacean roulette with frequent accidental breakages. cargo-semver-checks catches these before they're published.
    • Learned: Rustaceans often avoid updating unless forced due to the "lose-lose" situation of accidental breakage.
    • Highlights:

      • Twice as many lints in 20% less time: Added 63 new lints in 2024, reaching 120. Analyzed Cargo.toml and determined trait implementation, reducing runtime.
      • Lint-level configuration: Community's #1 requested feature, allowing users to configure lints in Cargo.toml. Max Carr did this as part of Google Summer of Code.
      • 9 different rustdoc format versions: Supported 9 mutually incompatible rustdoc JSON format versions without breaking users' workflows.
    • Conference talks: Gave talks at RustConf, EuroRust, UA Rust, FOSDEM, and a meetup talk at Rust Boston. Topics included SemVer in Rust, preventing accidental breakages, and testing techniques.
    • Podcasts and livestreams: Had 3 podcast appearances and 1 livestream. Topics ranged from the need for cargo-semver-checks to how Trustfall makes it possible.
  • Call to action: If your company or projects benefit, consider funding via GitHub Sponsors. Subscribe to the blog or follow on social media. Discuss on r/rust.
阅读 6
0 条评论