Error: LoadLibraryExW failed

Sometimes, the build fails with the following error message. It only happens occasionally on our build servers (for which we don’t have easy access) and only on Windows (Linux and Mac work fine). Is there a way to configure cargo to output more diagnostic information? For example, which library failed to load or on what stage. We tried setting RUST_BACKTRACE=1, and configure debug=true in .cargo\config.toml but with no luck.

Compiling mockall v0.11.1
error: LoadLibraryExW failed
--> C:\Users\ContainerAdministrator.cargo\registry\src\github.com-1ecc6299db9ec823\mockall-0.11.1\src\lib.rs:1258:9
|
1258 | pub use mockall_derive::automock;
| ^^^^^^^^^^^^^^

error: LoadLibraryExW failed
--> C:\Users\ContainerAdministrator.cargo\registry\src\github.com-1ecc6299db9ec823\mockall-0.11.1\src\lib.rs:1331:9
|
1331 | pub use mockall_derive::mock;
| ^^^^^^^^^^^^^^

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.