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

#[derive(ObjectHash)] #15

Open
dtolnay opened this issue Jan 22, 2017 · 2 comments
Open

#[derive(ObjectHash)] #15

dtolnay opened this issue Jan 22, 2017 · 2 comments

Comments

@dtolnay
Copy link

dtolnay commented Jan 22, 2017

Macros 1.1 instead of objecthash_struct! would make it much easier to hash structs and enums.

@tarcieri
Copy link
Member

Yes definitely, I've been poking at it. Not entirely trivial though.

@tarcieri
Copy link
Member

tarcieri commented Jul 5, 2017

One option here would be to investigate using serde visitors. Then objecthash could work for any type that implements Serialize

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

No branches or pull requests

2 participants