Closed jmininger closed 1 week ago
We could add #[cfg_attr(docsrs, doc(cfg(feature = ""))]
for docs, but because it's defined using a macro we should not cfg the functions directly because it might be called from another crate with possibly different features
Component
primitives
What version of Alloy are you on?
0.2.1
Operating System
Linux
Describe the bug
I had
alloy-0.2.1
withfeatures=["full"]
in myCargo.toml
but was unable to useAddress::random()
. Upon closer inspection it looks like this method is generated via macro, and that it requires thegetrandom
feature. This is not documented in the docs.rs, and this lack of documentation unfortunately resulted in it taking slightly longer than I would have liked to get my code running