Skip to content

Target specific examples #11169

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

Closed
cujomalainey opened this issue Oct 2, 2022 · 1 comment
Closed

Target specific examples #11169

cujomalainey opened this issue Oct 2, 2022 · 1 comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

Comments

@cujomalainey
Copy link

Problem

Building system depending libraries with examples that vary based on the OS (e.g. embedded-hal integrations or USB functionality) causes example tests to constantly fail if you write examples to fail when running cargo test.

Proposed Solution

Allow for examples to be scoped to specific targets and possibly allow for cross compilation.

Notes

No response

@cujomalainey cujomalainey added the C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` label Oct 2, 2022
@weihanglo
Copy link
Member

Thanks for the report! This seems effectively a duplicate of #9208. Close this in favour of #9208.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Projects
None yet
Development

No branches or pull requests

2 participants