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

Introduce Filler derive macro for FillExt #47

Merged
merged 10 commits into from
Aug 24, 2023
Merged

Conversation

jkbkaiser
Copy link
Contributor

Don't know where to place the FillExt<T> trait. Made it because I was playing around with macros, do not know if it has actual use.

@jkbkaiser jkbkaiser requested a review from oxkitsune July 24, 2023 02:01
@oxkitsune
Copy link
Member

oxkitsune commented Jul 24, 2023

Idealy we don't place the trait in the macro crate. I think bifrost has good example of this for Encode + Decode. I'm also not entirely convinced we want to use a macro for this, as the logic is rather simple. I'd like to avoid macros as much as possible to keep the code complexity down.

@jkbkaiser
Copy link
Contributor Author

@oxkitsune I understand you want to avoid macros, I'll leave it up to you whether you want to include it or not, you can throw it out if you do not want it.

nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
@jkbkaiser
Copy link
Contributor Author

@oxkitsune do we want to merge this?

nidhogg_derive/src/filler.rs Outdated Show resolved Hide resolved
nidhogg/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Member

@oxkitsune oxkitsune left a comment

Choose a reason for hiding this comment

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

Added a commit, LGTM!

@oxkitsune oxkitsune changed the title Added macro for fill extension. Introduce Filler derive macro for FillExt Aug 24, 2023
@oxkitsune oxkitsune merged commit fd62791 into main Aug 24, 2023
5 checks passed
@oxkitsune oxkitsune deleted the jkaiser/filler_macro branch August 24, 2023 06:01
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