https://github.com/robertdurst/struct_gen
A macro based tool for automagically generating structs.
https://github.com/robertdurst/struct_gen
macros rust
Last synced: about 1 year ago
JSON representation
A macro based tool for automagically generating structs.
- Host: GitHub
- URL: https://github.com/robertdurst/struct_gen
- Owner: robertDurst
- License: mit
- Created: 2018-07-26T13:10:19.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-16T02:37:24.000Z (almost 8 years ago)
- Last Synced: 2025-03-01T23:29:28.157Z (over 1 year ago)
- Topics: macros, rust
- Language: Rust
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# struct_gen
[](https://travis-ci.org/robertDurst/struct_gen)
[](https://crates.io/crates/struct_gen)
A macro based tool for automagically generating structs. Experimental -- aka written as I was learning about macros.
## Changelog
* 0.1.1 - August 5, 2018
* Support for lifetimes
* Support for 10 of 11 primitive types (tuples will come with next release) including:
* Signed integers
* Unsigned integers
* Boolean
* Char
* Vectors (`std::vec::Vec`)
* Arrays (*maximum size of 10 for now*)
* Slices
* Floats
* str
* Strings
* Added dependency on a procedural macro to generate array implementations for `Zero` trait (a bit hackish at the moment)
* Learn about `struct_gen_derive` [here](https://github.com/robertDurst/struct_gen_derive)
* 0.1.0 - July 30, 2018
* Minimum viable crate
* Ability to generate struct's with constructor for most basic primitives
* Began implementing `struct_gen!` and `impl_zero!` macros
* Created `Zero` trait for definition of *zero-or-override* method on types