error: failed to load manifest for workspace
Describe the bug After cloning the project to my local machine using Git, I encountered a compilation error. It seems like the project is missing some necessary library files.
Describe the environment
- WSL:Ubuntu-24.04,
- rustc 1.85.0
How to Reproduce the bug Steps to reproduce the behavior:
- git clone https://github.com/rustdesk/rustdesk-server.git 2.cargo run
- I get this error
error: failed to load manifest for workspace member
/home/xxx/rustdesk-server/libs/hbb_commonreferenced by workspace at/home/xxx/rustdesk-server/Cargo.toml
Caused by:
failed to read /home/xxx/rustdesk-server/libs/hbb_common/Cargo.toml
Caused by: No such file or directory (os error 2)
Expected behavior I hope the project can compile successfully.
Additional context I'm a beginner working in backend development, and I'm looking forward to contributing to Rust open-source projects.
I have already resolved this issue. Reason: The source code package downloaded via Git did not include the libs/hbb_common folder. Solution: Download the complete hbb_common package from the website, and then overwrite the libs/hbb_common folder in the project with the downloaded one.
This should be reopened as the hbb_common folder contents are still missing in the 1.1.13 and 1.1.14 source packages. The workaround above works, but the source folder shouldn't be empty.
Edit: the hbb_common components have to be downloaded from here and then placed into the libs/hbb_common folder for the compilation to succeed.
您好,您的邮件我已收到, 我会尽快回复。
This issue should be reopened. When clone with git, it still does not include this lib.
您好,您的邮件我已收到, 我会尽快回复。