tidy-builder
tidy-builder is a builder generator that is compile-time correct. (by maminrayej)
rust-typed-builder
Compile-time type-checked builder derive (by idanarye)
tidy-builder | rust-typed-builder | |
---|---|---|
1 | 6 | |
36 | 840 | |
- | - | |
1.9 | 8.3 | |
5 months ago | 29 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tidy-builder
Posts with mentions or reviews of tidy-builder.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-11.
-
Introducing tidy-builder: A Compile-time Correct Builder Generator in Rust
With tidy-builder, you define your struct and tidy-builder creates a builder for you, only allowing construction if all required fields are provided. This way, you'll catch potential errors at compile-time rather than runtime.
rust-typed-builder
Posts with mentions or reviews of rust-typed-builder.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-11.
-
Introducing tidy-builder: A Compile-time Correct Builder Generator in Rust
derive_builder works in runtime - you have to unwrap built result. And code editors cannot use auto-import builder-types. That's why I switched to [typed-builder|https://github.com/idanarye/rust-typed-builder] which looks similar to builder-pattern but more popular.
-
Should I start renaming my crate repositories that have "rust" in their names?
I'm the author of the typed-builder crate (and a couple of other crates in a similar position). The name of the crate's repository on GitHub is rust-typed-builder. Does the new trademark policy mean I have to change the repository's name to typed-builder-rs or typed-builder.rs or something similar, or am I in the clear because only the repository name is has the word "rust" in it and the crate itself is only named "typed-builder"?
-
Hey Rustaceans! Got a question? Ask here! (42/2022)!
There are also crates which can do that for you (e.g. https://github.com/idanarye/rust-typed-builder).
-
Survey of bad error messages emitted by the "misuse" of trait heavy crates
I can open a PR if desired but typed-builder is a big example for me of where this would be super useful. It's a good example of using traits/type safety for compile-time guarantees but the error messages are really subpar compared to the standard Rust experience, so feels like a very arbitrary compromise on Rust's strengths.
-
Buildstructor: a proc macro to build builders from constructors
Yes! The inspiration came from: * rust-typed-builder which is the struct equivalent of this crate. * https://users.rust-lang.org/t/typesafe-builder-design/58784
-
Thoughts on Rust Builder Pattern?
Rust Typed Builder
What are some alternatives?
When comparing tidy-builder and rust-typed-builder you can also consider the following projects:
patterns - A catalogue of Rust design patterns, anti-patterns and idioms
crab - A community fork of a language named after a plant fungus. All of the memory-safe features you love, now with 100% less bureaucracy!
buildstructor - Derive a builder for your constructors in Rust
diesel - A safe, extensible ORM and Query Builder for Rust
rust-foundation-community-grant
tower-biscuit-auth - Integrating Biscuit authentication with the Tower ecosystem.
console - a debugger for async rust!
rustlings-solutions-5 - Rustlings 5 (5.2.1) Solutions
uom - Units of measurement -- type-safe zero-cost dimensional analysis
rust-analyzer - A Rust compiler front-end for IDEs
rfcs - RFCs for changes to Rust
rust-vfs - A virtual filesystem for Rust
rust-typed-builder vs patterns
rust-typed-builder vs crab
rust-typed-builder vs buildstructor
rust-typed-builder vs diesel
rust-typed-builder vs rust-foundation-community-grant
rust-typed-builder vs tower-biscuit-auth
rust-typed-builder vs console
rust-typed-builder vs rustlings-solutions-5
rust-typed-builder vs uom
rust-typed-builder vs rust-analyzer
rust-typed-builder vs rfcs
rust-typed-builder vs rust-vfs