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

List available targets #60

Open
arik-so opened this issue Mar 11, 2022 · 1 comment
Open

List available targets #60

arik-so opened this issue Mar 11, 2022 · 1 comment

Comments

@arik-so
Copy link

arik-so commented Mar 11, 2022

I'm trying in vain to run cargo instruments --bench <name> inside a workspace containing multiple members, each with multiple test and bench targets. Unfortunately, the only error I ever get is

Failed missing target bench <name>

I cannot find a single example of how to specify a given bench target, or really any target that isn't just the main.rs file, nor does there appear to be a way to get the list of available targets.

Given that to throw the error, the app first collects a list of all available targets here, it would be extremely helpful to have the ability to just print that particular list.

@cmyr
Copy link
Owner

cmyr commented Mar 11, 2022

This does sound useful, and I would be happy to accept a patch for it; otherwise I'll take a look next time I'm making substantive changes. :)

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

No branches or pull requests

2 participants