field_names
darling
field_names | darling | |
---|---|---|
2 | 3 | |
37 | 908 | |
- | - | |
0.0 | 8.1 | |
over 2 years ago | 20 days ago | |
Rust | Rust | |
MIT License | MIT License |
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.
field_names
-
Trick for keeping fields of two structs in sync
PS: The rename protection here requires that the field types are completely identical between the two. If you need to do Into or AsRef conversions, this will still catch field addition and removal, but you may need to add a unit-test that uses something like field_names.
-
What's everyone working on this week (9/2021)?
I've added a test/example to the field_names showing how it can be used to keep two structs' fields in sync (source code). This solved a problem I was having where edits to one struct risked breaking deserialization if the same change wasn't applied to a second struct.
darling
-
Boilerplate, a minimal compile-time text template library 0.2.4 has been released. Looking for feedback and users before 1.0!
Since the last time I posted, I added support for using template contexts with generic arguments (all thanks to the excellent darling, allowed configuring template filenames, and a few other niceties.
-
venial 0.4 - A lightweight alternative to syn
Porting more libraries to venial. Good candidates would be derivative, clap and darling. Also, clap maintainer epage has expressed interested in helping any such post, so go see him if you're interested. I'll probably find some missing features in the process.
-
venial 0.2 - A lightweight alternative to syn
In particular, the handling of attributes in venial is extremely bare-bones. I'd like to improve it, and also port darling for easier writing.
What are some alternatives?
mp4 - MP4 library, CLI tool, server
venial - "A very small syn"
rust-fsm - Finite state machine framework for Rust with readable specifications
rust-derivative - A set of alternative `derive` attributes for Rust
negate - Attribute macro that generates negated versions of`is_something` functions
azure-sdk-for-rust - This repository is for active development of the *unofficial* Azure SDK for Rust. This repository is *not* supported by the Azure SDK team.
utility-rs - Try impl TypeScript's utility types in rust via proc_macro
Bytecode - A Rust proc-macro crate which derives functions to compile and parse back enums and structs to and from a bytecode representation
quote - Rust quasi-quoting
rustfuif - Performance & correctness oriented beursfuif implementation in rust
todo_by - Compile-time lifetimes for comments.