✨🧪♻️➕ vanth, vanth_derive: Add derive macro for Vanth
trait implementation
- Added `vanth_derive` crate with a procedural macro to automatically implement the `Vanth` trait for structs, including generics. - Refactored `vanth` crate by removing obsolete `vanth.rs` file. - Implemented `PartialEq` for `Ty` to enable comparisons with string values and another `Ty`. - Added integration tests for deriving `Vanth` with generic parameters. - Updated dependencies: added `quote`, `syn`, and `proc-macro2` crates.
This commit is contained in:
parent
94105daca1
commit
b36f178999
9 changed files with 119 additions and 23 deletions
10
Cargo.lock
generated
10
Cargo.lock
generated
|
@ -1009,6 +1009,7 @@ dependencies = [
|
|||
"digest",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"vanth_derive",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -1019,6 +1020,15 @@ dependencies = [
|
|||
"vanth",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "vanth_derive"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"syn",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "variadics_please"
|
||||
version = "1.1.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue