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

Make rustc-serialize optional #7

Merged
merged 2 commits into from
Mar 26, 2018
Merged

Conversation

tomaka
Copy link

@tomaka tomaka commented Mar 26, 2018

Also bumps the rand crate.

src/lib.rs Outdated
#[derive(Copy, Clone, PartialEq, Eq, RustcDecodable, RustcEncodable)]
#[cfg(not(feature = "rustc-serialize"))]
pub trait Group:
'static +
Copy link

Choose a reason for hiding this comment

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

why static?

Copy link
Author

Choose a reason for hiding this comment

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

I don't know 🙃 I just duplicated the existing trait to remove the Encodable/Decodable trait requirements when we don't use rustc-serialize.

Copy link

Choose a reason for hiding this comment

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

I can imagine that it can impede some later optimizations, so maybe drop this restriction?

@tomaka tomaka merged commit 964b48f into paritytech:master Mar 26, 2018
@tomaka tomaka deleted the rustc-ser-opt branch March 26, 2018 13:38
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