When I use cargo build
, cargo will first lag for a while and then give this prompt:
warning: failed to save last-use data
This may prevent cargo from accurately tracking what is being used in its global cache. This information is used for automatically removing unused data in the cache.database is locked
Caused by:
Error code 5: The database file is locked
Although cargo can still continue to compile afterwards, this has resulted in an extension of cargo build time. How did this problem arise and how should I handle it?
I didn't find a similar issue on google