We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
array-bytes
Continue paritytech/substrate#12190.
And there are numerous hex crates in this codespace which is perplexing.
array-bytes, hex, hex-literal, rustc_hex.
And such re-implementation can be found at
polkadot-sdk/substrate/primitives/core/src/const_hex2array.rs
Line 47 in 586ab7f
Recently, I released array-bytes v8.0.0.
Its performance is as fast as faster-hex. With smallvec, it's even faster than faster-hex in some cases.
faster-hex
smallvec
It's pure no_std (without the need to specify default-features = false). Pretty polkadot-sdk friendly.
default-features = false
It provides a lot of array/bytes helper functions.
It has easy-to-understand API names. (e.g. hex2bytes, bytes2hex, vec2array..)
hex2bytes
bytes2hex
vec2array
It has fuzz test.
Basically, it's designed for Substrate at the beginning.
use array_bytes;
Yes!
The text was updated successfully, but these errors were encountered:
The reimplementation exists because it is a const fn. Would be nice if array-bytes could provide const versions as well.
const fn
const
Sorry, something went wrong.
No branches or pull requests
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Motivation
Continue paritytech/substrate#12190.
And there are numerous hex crates in this codespace which is perplexing.
array-bytes, hex, hex-literal, rustc_hex.
And such re-implementation can be found at
polkadot-sdk/substrate/primitives/core/src/const_hex2array.rs
Line 47 in 586ab7f
Request
Recently, I released array-bytes v8.0.0.
Its performance is as fast as
faster-hex
. Withsmallvec
, it's even faster thanfaster-hex
in some cases.It's pure no_std (without the need to specify
default-features = false
). Pretty polkadot-sdk friendly.It provides a lot of array/bytes helper functions.
It has easy-to-understand API names. (e.g.
hex2bytes
,bytes2hex
,vec2array
..)It has fuzz test.
Basically, it's designed for Substrate at the beginning.
Solution
Are you willing to help with this request?
Yes!
The text was updated successfully, but these errors were encountered: