enum-code
winresult
enum-code | winresult | |
---|---|---|
1 | 1 | |
6 | 0 | |
- | - | |
5.3 | 2.0 | |
11 months ago | 12 months ago | |
Rust | Rust | |
MIT License | GNU General Public License v3.0 or later |
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.
enum-code
-
Just open source a process macro「enum-code」for mapping enum values to error codes in Rust.
You can find the code on Github: https://github.com/Kunduin/enum-code and crates.io: https://crates.io/crates/enum-code.
winresult
-
How to convert an enum to string in C++
https://github.com/MaulingMonkey/winresult/
Another project: thindx. Bindings for d3dcompiler + d3d9 + xinput have a lot of enums and flags:
• 50 results in 49 files for flags!: https://github.com/search?q=repo%3AMaulingMonkey%2Fthindx%20...
• 77 results in 69 files for enumish!: https://github.com/search?q=repo%3AMaulingMonkey%2Fthindx+en...
• I still do things by hand somtimes, for reasons that elude my recollection: https://github.com/MaulingMonkey/thindx/blob/127d75f9de91f73...
And these are baby numbers compared to an actual professional gamedev codebase. Attention to detail makes me fairly comfortable with this much hand-generated nonsense in my one man show, but bugs still crop up... and there are people I would dread handing maintainence of such a project over to that I've worked with in a professional capacity, who simply do not care to exercise the same level of care as I do when editing such stuff.
What are some alternatives?
nutype - Rust newtype with guarantees 🇺🇦 🦀
winsafe-examples - Examples of native Windows applications written in Rust with WinSafe.
crates.io - The Rust package registry
ariadne - A fancy diagnostics & error reporting crate
snafu - Easily assign underlying errors into domain-specific errors while adding context
winsafe - Windows API and GUI in safe, idiomatic Rust.
ebec - A collection of extensible ES6 error classes for different contexts.
thindx - Thin DirectX wrappers for Rust.
maud - :pencil: Compile-time HTML templates for Rust