Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(json-abi): remove duplicate item serde hack #330

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

DaniPopes
Copy link
Member

@DaniPopes DaniPopes commented Oct 4, 2023

Based on #329

Simplifies serde for items and AbiItem by using tag = "type" on the item structs directly.
Perf is slightly (2-5%) better for ser, while unchanged for de

Copy link
Member

@gakonst gakonst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very nice

@DaniPopes DaniPopes merged commit c1e1f9d into dani/hrparser Oct 4, 2023
38 checks passed
@DaniPopes DaniPopes deleted the dani/simplify-json-serde branch October 4, 2023 22:04
DaniPopes added a commit that referenced this pull request Oct 4, 2023
* feat: add parsing support for JSON items

* Update crates/json-abi/src/item.rs

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>

* feat: add parsing to JsonAbi, address reviews

* parse returns kw

* doc

* parse storage

* add storage test

* add todo

* refactor(json-abi): remove duplicate item serde hack (#330)

---------

Co-authored-by: Georgios Konstantopoulos <me@gakonst.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants