cargo-docs
cargo-docs copied to clipboard
`Failed to run custom build command` after upgrades to rust 1.81
Hi,
After I upgrade rust to 1.81, cargo docs reports serval errors like below and exits:
error: failed to run custom build command for `libc v0.2.155`
Caused by:
could not execute process `.../build-script-build` (never-executed)
Caused by:
No such file or directory (os error 2)
However, plain cargo doc/ builds works fine without errors, things I tried but no luck are:
- add
--target x86_64-unknown-linux-gnuto extra args - use the default linker instead of mold
- disable sccache by not setting rustc-wrapper
Please let me know if you have any idea to solve this problem.