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

Use const-generics to implement FromHex trait #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Luro02
Copy link
Contributor

@Luro02 Luro02 commented Jun 6, 2021

In rust version 1.51 a small subset of const-generics has been
stabilized, which removes the need for the previously used macro.

Because of the widespread use of this crate and previous issues with minor versions breaking the msrv of this crate, I would suggest making this PR part of the 0.5.0 release.

In rust version 1.51 a small subset of const-generics has been
stabilized, which removes the need for the previously used macro.
@KokaKiwi
Copy link
Owner

I really would love to use const-generics to replace these awful "magic-number thingy impls", but i think it would need some requirements, like a MSRV set for hex. And as said in #56 (comment), this matter would require some discussion ^^

Also there's stuff i would like to try to make hex more retro-compatible by using some build-time crate like rustversion with some parts of code conditioned with #[rustversion::since(1.51)] for example.
But that would actually be the kind of stuff i would like to discuss relating to setting a MSRV for hex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants