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

Improve sample binary build dependencies #3191

Closed
wants to merge 1 commit into from

Conversation

kennykerr
Copy link
Collaborator

Binary crate dependencies continue to be a weak point in Cargo. This just attempts to make the binary component samples build a little bit more reliably. In these two cases, the dependent (client) crates need the component (server) crates built ahead of their build scripts as it relies on the component to produce the .winmd files that the build scripts use to generate bindings.

@kennykerr
Copy link
Collaborator Author

But of course, that doesn't work since the yml tests are executed with an explicit target which means that Cargo doesn't use the default target location for binaries, a further reminder of how poorly binaries are supported in Cargo. 😢 rust-lang/cargo#9661

@kennykerr kennykerr closed this Aug 6, 2024
@kennykerr kennykerr deleted the sample-component-reliability branch August 22, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant