reth
reth copied to clipboard
Gate `rayon` usage behind a feature
trafficstars
Describe the feature
There's serval reasons to do this:
- when using
alloy-primitives::map::HashMap(eg. std not enabled), therayon::IntoParallelIteratoris not enabled foralloy-primitives::map::HashMapby default, alsoalloy-primitivesdid not re-export thehashbrown/rayonfeature, user have to enable it viahashbrowncrate. - for zk related usage, parallel is usually not a thing, rayon introduce extra cost here.
Additional context
No response