You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If your crate doesn't declare a dependency on getrandom then you get this error:
error[E0433]: failed to resolve: use of undeclared crate or module `getrandom`
--> packages/server/src/util.rs:4:1
|
4 | / nano_id::gen!(
5 | | base_long_id,
6 | | 25,
7 | | b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
8 | | );
| |_^ use of undeclared crate or module `getrandom`
|
= note: this error originates in the macro `nano_id::gen` (in Nightly builds, run with -Z macro-backtrace for more info)
The text was updated successfully, but these errors were encountered:
For example with the following code:
If your crate doesn't declare a dependency on
getrandom
then you get this error:The text was updated successfully, but these errors were encountered: