Remove const_format
dependency
#13496
Labels
C-debt
Refactor of code section that is hard to understand or maintain
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
Its only usage is when formatting version specifiers, e.g.
reth/crates/node/core/src/version.rs
Line 19 in de477ba
We can move this logic into the build script which makes it more readable and removes the dependency.
This practically means replacing the const_format calls with
env!("NAME")
, and moving the formatting logic to build.rs withprintln!("cargo:rustc-env=NAME={value}")
Additional context
No response
The text was updated successfully, but these errors were encountered: