Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 'cargo doc' failed. #1887

Closed
cqlangyi opened this issue Jul 11, 2022 · 2 comments
Closed

Bug: 'cargo doc' failed. #1887

cqlangyi opened this issue Jul 11, 2022 · 2 comments
Labels
question Further information is requested

Comments

@cqlangyi
Copy link

Which crate is this about?

No response

Crate version

commit 4ba369a

Summary

'cargo doc' failed.

seems caused by a missing file named 'component.winmd', at location

'windows-rs/crates/tests/component/.windows/winmd/component.winmd',

witch is use by 'build.rs' under 'window-rs/crates/tests/component/'.

Toolchain version/configuration

No response

Reproducible example

No response

Crate manifest

No response

Expected behavior

No response

Actual behavior

No response

Additional comments

No response

@cqlangyi cqlangyi added the bug Something isn't working label Jul 11, 2022
@cqlangyi cqlangyi changed the title Bug: Bug: 'cargo doc' failed. Jul 11, 2022
@kennykerr
Copy link
Collaborator

The build.rs script creates the component.winmd - if that fails for you it's likely because you don't have midlrt.exe or one of its dependencies in your path. I suggest you build that from the Visual Studio command prompt. You will need the Visual Studio development environment for C++ installed along with the Windows SDK tools until I have complete metadata authoring support completed. #1093 should allow you to build such components without those dependencies.

@kennykerr kennykerr added question Further information is requested and removed bug Something isn't working labels Jul 11, 2022
@cqlangyi
Copy link
Author

thanks for the great answer. build from Visual Studio command prompt just resolved my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants