LemmyNet / lemmy

🐀 A link aggregator and forum for the fediverse
https://join-lemmy.org
GNU Affero General Public License v3.0
13.3k stars 882 forks source link

Remove getrandom dependency #5226

Closed Nutomic closed 3 days ago

Nutomic commented 4 days ago

This dependency is needed to make rand compile on wasm targets (see note in readme). However when compiling lemmy_api_common with default features, it doesnt pull in rand at all:

cargo tree -i rand -p lemmy_api_common
error: package ID specification `rand` did not match any packages

Did you mean `want`?

This means that it is unnecessary to specify the getrandom dependency.

cc @SleeplessOne1917