Constime
Zig's comptime for Rust. Mostly something to play around with until more stuff is `const` fn. (by DvvCz)
current_platform
Find out what platform your code is running on from Rust (by Shnatsel)
Our great sponsors
Constime | current_platform | |
---|---|---|
1 | 2 | |
7 | 31 | |
- | - | |
10.0 | 0.0 | |
over 1 year ago | about 2 years 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.
Constime
Posts with mentions or reviews of Constime.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-11.
-
Is there comptime reflection in Rust proc-macro?
I made this crate Constime if you really want something like zig's comptime, but it shouldn't be used for anything serious.
current_platform
Posts with mentions or reviews of current_platform.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-04-13.
-
Announcing `current_platform`: zero-cost platform detection
You only have that variable set for build.rs, not for your code. If you want to use this in your code, you have to capture it in build.rs and then re-export it to your code.
What are some alternatives?
When comparing Constime and current_platform you can also consider the following projects:
todo_by - Compile-time lifetimes for comments.
konst - Const equivalents of std functions, compile-time comparison, and parsing.
SHLL - An experiment of high level code optimization
bagel - Compile-time stuff and other goodies for rustaceans 🦀
dyntable - Idiomatic and FFI Safe dyn traits in Rust
static-assertions - Ensure correct assumptions about constants, types, and more in Rust
expand - Rust library that introduces a macro to expand byte string and string literals
utoipa - Simple, Fast, Code first and Compile time generated OpenAPI documentation for Rust
negate - Attribute macro that generates negated versions of`is_something` functions
linkme - Safe cross-platform linker shenanigans