Skip to content

chore!: Migrate from typed-builder to bon - #831

Merged
spencewenski merged 2 commits into
v0.8from
gh-805-bon
Jul 13, 2025
Merged

spencewenski merged 2 commits into
v0.8from
gh-805-bon

Conversation

@spencewenski

Copy link
Copy Markdown
Member

The resulting APIs are mostly compatible. However, optional setters were renamed from *_opt to maybe_*.

The resulting APIs are mostly compatible. However, optional setters were
renamed from `*_opt` to `maybe_*`.
@spencewenski
spencewenski merged commit f754136 into v0.8 Jul 13, 2025
@spencewenski
spencewenski deleted the gh-805-bon branch July 13, 2025 05:40
@spencewenski spencewenski mentioned this pull request Jul 13, 2025
spencewenski pushed a commit that referenced this pull request Jul 13, 2025
## 🤖 New release

* `roadster`: 0.8.0-alpha.1 -> 0.8.0-alpha.2 (✓ API compatible changes)

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.8.0-alpha.2](roadster-v0.8.0-alpha.1...roadster-v0.8.0-alpha.2)
- 2025-07-13

### Other

- [**breaking**] Migrate from `typed-builder` to `bon`
([#831](#831))
- [**breaking**] Add `skip_serializing_none` to serialized structs
([#830](#830))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/release-plz/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Comment thread src/health/check/mod.rs
pub status: Status,
/// Total latency of checking the health of the resource in milliseconds.
#[builder(setter(transform = |duration: std::time::Duration| duration.as_millis()))]
#[builder(setters(vis = "", name = latency_internal))]

@Veetaha Veetaha Jul 13, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, this could be expressed via a one-liner #[builder(with)]. Pointing this out in case if you missed

Suggested change
#[builder(setters(vis = "", name = latency_internal))]
#[builder(with = |duration: std::time::Duration| duration.as_millis())]

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, cool, thanks @Veetaha. I'm pretty new to bon, so I didn't know about this. I'll check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants