Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@gui1117
Copy link
Contributor

@gui1117 gui1117 commented Jan 26, 2021

I make changes for pallets randomness-collective-flip, recovery, scheduler, scored-pool, session, society, staking, sudo, timestamp, tips, transaction-payment, treasury, utility, vesting.

the reason some pallet needs to import serde is because when macro_rules macro are using $crate::serde I think it can result is errors somehow.

There is an attribute that can be given to serde to resolve this https://serde.rs/container-attrs.html#crate but it is difficult to do this in this macro_rules macro. IMO it should be solved later when those are rewritten in procedural macro.

@gui1117 gui1117 added A0-please_review Pull request needs code review. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jan 26, 2021
@gui1117 gui1117 requested a review from kianenigma as a code owner January 26, 2021 13:40
@gui1117 gui1117 requested a review from ascjones January 26, 2021 13:40
@bkchr
Copy link
Member

bkchr commented Jan 26, 2021

There is an attribute that can be given to serde to resolve this https://serde.rs/container-attrs.html#crate but it is difficult to do this in this macro_rules macro. IMO it should be solved later when those are rewritten in procedural macro.

Fuck, finally! I still would like to have official rust support, but better than nothing.

@gui1117 gui1117 merged commit 46c510f into master Jan 26, 2021
@gui1117 gui1117 deleted the gui-migrate-some-more-tests branch January 26, 2021 14:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A0-please_review Pull request needs code review. A2-insubstantial Pull request requires no code review (e.g., a sub-repository hash update). B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants