Skip to content

v0.0.5 - ci: 👷 Update Rust toolchain to nightly in format workflow (#12)

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 11:35
· 2 commits to main since this release
d6de697

🌟 Summary

v0.0.5 is a tooling-focused release 🎛️ that standardizes the Rust toolchain on nightly, tightens formatting/linting in CI, and refreshes crate metadata—making development smoother and more consistent for contributors.


📊 Key Changes

  • 🛠️ Rust toolchain upgraded to nightly everywhere

    • CI formatting workflow now uses dtolnay/rust-toolchain@nightly instead of @stable.
    • CI publish workflow also switched to @nightly and explicitly installs:
      • rustfmt for formatting checks
      • clippy for linting
  • 📦 Crate version bump

    • Cargo.toml version updated from 0.0.40.0.5.
  • 📚 Improved crate metadata

  • 🧩 Project-wide toolchain configuration

    • New rust-toolchain.toml file added to define a consistent nightly toolchain, components, and targets for all developers:
      • Channel: nightly
      • Components: rustfmt, clippy, rust-src, rust-analyzer
      • Targets: major Linux, macOS (Intel & Apple Silicon), and Windows architectures.
  • Enhanced formatting config

    • rustfmt.toml now enables unstable_features = true to support nightly-only formatting options.

🎯 Purpose & Impact

  • Consistent formatting & linting across environments
    Ensures cargo fmt and cargo clippy behave the same for everyone—locally and in CI—reducing “works on my machine” issues and noisy diffs.

  • 🚀 Enables advanced nightly-only formatting features
    By opting into nightly and unstable rustfmt features, the project can use more powerful, stricter, or more expressive formatting rules.

  • 🧱 Stronger, more predictable CI
    CI now explicitly installs and runs rustfmt and clippy, catching style and correctness issues earlier, before they hit main branches.

  • 🌐 Better discoverability & documentation linkage
    Adding the docs URL to Cargo.toml makes it easier for users to jump from the crate to Ultralytics documentation via crates.io or IDE integrations.

  • 📌 Patch release reflecting tooling upgrades
    Version 0.0.5 cleanly marks this as a tooling/infra-focused update—no breaking API changes, but a more polished developer experience.

What's Changed

  • ci: 👷 Update Rust toolchain to nightly in format workflow by @onuralpszr in #12

Full Changelog: v0.0.4...v0.0.5