-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Allow specifying defaults for build target types #6945
Comments
Not ideal but seems to work; see: rust-lang/cargo#6945
Not ideal but seems to work; see: rust-lang/cargo#6945
Not ideal but seems to work; see: rust-lang/cargo#6945
I've actually wanted a more general mechanism of specifying any default for all targets of a specific kind. Some examples:
I have no idea how that would look in TOML, but I think would be useful in a number of circumstances. |
I think for this (and several other things I've come across) a real scripting language would work better than a declarative language like TOML. (There are several options: an expanded version of |
#12430 is a case that could be resolved by a general mechanism mentioned in #6945 (comment). Arguments are:
|
When mapping out a path forward for custom test harnesses, I think this feature becomes critical. I'll be proposing to the test team (rust-lang/rfcs#3455) that this Issue be on our short-list. |
Request: allow a feature flag to be required by all benchmarks (whether this acts like
dev-dependencies
and affects tests too or only benchmarks does not matter).From what I understand, currently:
[[bin]]
or[[bench]]
for a single binary)Workaround: it appears to be possible to enable the feature for each benchmark independently, as follows:
The text was updated successfully, but these errors were encountered: