Skip to content

Conversation

jplatte
Copy link

@jplatte jplatte commented Jul 18, 2025

I am not a fan of crates like derive_builder because they impose a rather big compile time hit when they are often, like here, only used for a single builder that can easily be written by hand.

After having done that, I noticed the other dependencies also did not really seem to pull their weight, so I removed them all 😄

Let me know what you think!

jplatte added 5 commits July 18, 2025 22:23
Replace the derive by exactly the same API, except the derived impl
block is merged with the hand-written impl block for the builder type.

Remove the docstrings for the private fields of Sqids that were
previously used to generate docs for the builder methods, so there is
only one place to update when improving the docs for these things. I'm
happy to revert this bit if you prefer having the internal docstrings.
A JSON array of strings is valid as a Rust array literal, so parsing the
JSON at runtime can be avoided entirely.
@jplatte
Copy link
Author

jplatte commented Aug 5, 2025

Gentle ping @4kimov

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.

1 participant