Toots for predrag@hachyderm.io account

Written by Predrag Gruevski on 2025-01-31 at 00:36

"When can a trait be implemented without touching #[doc(hidden)] items?"

Simple question, extremely complex answer! Most intense 2000 lines I've written in a long time!

Still needs cleanup & refactoring, but it's passing tests!

https://github.com/obi1kenobi/trustfall-rustdoc-adapter/pull/742

[#]rust #rustlang #semver

=> View attached media

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-29 at 20:57

How the heck did I find this?

I want cargo-semver-checks to get all the edge cases right. This is what it takes.

When you become a GitHub Sponsor, you're funding that attention to detail: https://github.com/sponsors/obi1kenobi

[#]rust #rustlang #semver #sponsor

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-29 at 20:57

The Rust docs say:

Constants cannot refer to statics.

https://doc.rust-lang.org/reference/items/static-items.html#r-items.static.const

And yet the following works fine:

pub const A: i64 = 0;
pub static B: i64 = A + 1;
pub const C: i64 = B + 1;

[#]rust #rustlang

=> More informations about this toot | View the thread

Shared by Predrag Gruevski on 2025-01-28 at 16:41 (original by Matthias Endler)

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-28 at 16:15

Happy "new cargo-semver-checks release" day!

✨ 20 new lints ✨

Full release notes here:

https://github.com/obi1kenobi/cargo-semver-checks/releases/tag/v0.39.0

[#]rust #rustlang #semver

=> View attached media

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-28 at 15:50

Today I misremembered a rule that I helped implement in cargo-semver-checks.

I described something as breaking when it isn't, and failed to remember the actually breaking part. 0/2 on my part.

[#]rust #rustlang #semver

=> More informations about this toot | View the thread

Shared by Predrag Gruevski on 2025-01-27 at 15:24 (original by Matthias Endler)

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-23 at 16:58

Merged 5 new lints into cargo-semver-checks today 🦀

It's not even lunchtime yet 🔥🚀

[#]rust #rustlang #semver

=> More informations about this toot | View the thread

Shared by Predrag Gruevski on 2025-01-22 at 06:50 (original by hytradboi)

=> More informations about this toot | View the thread

Shared by Predrag Gruevski on 2025-01-22 at 03:42 (original by hytradboi)

=> More informations about this toot | View the thread

Shared by Predrag Gruevski on 2025-01-22 at 03:42 (original by hytradboi)

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-21 at 15:43

If you'd like to keep your finger on the pulse of cargo-semver-checks development (& maybe even contribute), we have a Discord!

Come join the party!

https://discord.gg/k9h2M2cY

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-21 at 15:24

Here's my recap of 2024 for cargo-semver-checks:

✨ 63 new lints

✨ better linting performance

✨ shipped our most-requested features

✨ key thing I learned: as a community, we never update versions unless forced to!

https://predr.ag/blog/cargo-semver-checks-2024-year-in-review/

[#]rust #rustlang #semver

=> More informations about this toot | View the thread

Shared by Predrag Gruevski on 2025-01-21 at 03:36 (original by Hazel Weakly)

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-16 at 21:22

Good news / bad news combo: I caught a severe perf regression in the upcoming cargo-semver-checks version, so no new release until I fix it.

Stand back, I will do performance engineering to it!

=> More informations about this toot | View the thread

Shared by Predrag Gruevski on 2025-01-15 at 18:32 (original by Sean McArthur :rust:)

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-09 at 15:20

I like to play "Where's Waldo" as much as the next person, but not during code review.

Let's have more tools that point out things humans might miss!

=> View attached media

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-09 at 15:10

Pay close attention to the spelling of the optional dependency vs the feature name.

One is mock_instant, the other is mock-instant. Underscore vs dash.

The change removes the mock_instant feature, which cargo-semver-checks caught.

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-09 at 15:09

cargo-semver-checks found the problem in this change, saving the project from breaking SemVer. Manifest linting for the win! 🔥

Do you see the breaking change?

[#]rust #rustlang #semver

=> View attached media

=> More informations about this toot | View the thread

Written by Predrag Gruevski on 2025-01-09 at 00:00

I wrote a post about how manifest linting in cargo-semver-checks works, if you'd like to learn more: https://predr.ag/blog/breakage-in-the-cargo-toml-how-rust-package-features-work/

=> More informations about this toot | View the thread

=> This profile without reblog | Go to predrag@hachyderm.io account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109420036463093592/reblog
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
580.303329 milliseconds
Gemini-to-HTML Time
5.154623 milliseconds

This content has been proxied by September (3851b).