[Feature] Replace hex-literal
crate with hexlit
in order to support "0x"
prefix in the address!()
macro
#764
Labels
enhancement
New feature or request
Component
primitives
Describe the feature you would like
The
primitives
library defines thefixed_bytes_macros! {}
internal utility macro, which in turn is used to define exported macros such asaddress!()
for compile-time values. The latter takes in a hex-encoded string literal, which is then represented as anAddress
value.Currently the
hex-literal
crate is responsible for translating hex-encoded string literals into byte arrays in compile time. It is not feature-complete though, notably it lacks the support for"0x"
prefix.There exists an alternative
hexlit
crate which seems to be a more recent drop-in replacement forhex-literal
, and which does support additional features such as"0x"
prefix, as well as some extra kinds of formatting characters, such as hyphen'-'
and underscore'_'
.Additional context
No response
The text was updated successfully, but these errors were encountered: