const-eval
home for proposals in and around compile-time function evaluation (by rust-lang)
makeit
Zero-overhead type-safe builder pattern `derive` macro for your Rust structs (by estebank)
Our great sponsors
const-eval | makeit | |
---|---|---|
6 | 1 | |
99 | 219 | |
- | - | |
3.8 | 0.0 | |
9 months ago | 11 months ago | |
CSS | Rust | |
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.
const-eval
Posts with mentions or reviews of const-eval.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-30.
-
After years of work and discussion, `once_cell` has been merged into `std` and stabilized
Here's the issue: https://github.com/rust-lang/const-eval/issues/20
-
Are there examples of programming language compilers that evaluate the side-effect free parts of the program at compile-time?
A similar idea is proposed here for Rust
-
Why is `const fn` different from other “const” things?
See also the const-eval project
-
Question: reference str in array and Vec
This is explained in more detail here: https://github.com/rust-lang/const-eval/blob/master/promotion.md
-
Hey Rustaceans! Got a question? Ask here! (23/2022)!
This is due to const-promotion. The compiler recognizes the array expression can be a constant and so treats it like one.
- Who owns the struct of instantiated reference?
makeit
Posts with mentions or reviews of makeit.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-06-06.
-
Hey Rustaceans! Got a question? Ask here! (23/2022)!
The best alternative I can think of is a typestate pattern similar to the one in https://github.com/estebank/makeit where instead of using marker parameter types to indicate that a field hasn't been set you use those markers to indicate that a field should be set to some default type.
What are some alternatives?
When comparing const-eval and makeit you can also consider the following projects:
metrics
bad_actor_poc
ledger-filecoin-rs
book - The Rust Programming Language
tokio - A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...
winit - Window handling library in pure Rust
The-Spiral-Language - Functional language with intensional polymorphism and first-class staging.
mdBook - Create book from markdown files. Like Gitbook but implemented in Rust
maud - :pencil: Compile-time HTML templates for Rust
too-many-lists - Learn Rust by writing Entirely Too Many linked lists