-
Notifications
You must be signed in to change notification settings - Fork 43
RFC Greater customization of cargo #44
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
Comments
@quininer and @mssun, I've released Could you give that a spin to see what you thoughts are? If it works for you, I'll be closing this issue by
We still need to decide whether the easy-path API should use |
I am satisfied with this API, but |
Thanks @epage, I'm pretty satisfied with the API. Now I can use
to get the path of binary which compiled with This works well when test with However, when I don't use |
I know exactly whats wrong and will hopefully get a chance to fix it soon. In the mean time, could you open an issue for it on escargot? How come you are caching the path rather than caching the
It cannot and that is the crux of #4. |
Yes, I understand. Thank you. This requires me to run |
Remaining work: figure out target |
Can I specify the features now? The use case is that we want to test some features which are not default. |
Yes, though it will require adding a dependency on See the implementation of Drat, it doesn't look like I've added a |
Part of assert-rs#44. BREAKING CHANGE: Deprecated cargo path functions removed.
I decided to go with this because I feel like correctness trumps performance. For those not specifying `--target`, the performance will surprise them. For those specifying `--target`, the lack of correctness will surprise them but is less easily detected. Fixes assert-rs#4, assert-rs#44 BREAKING CHANGE: In this case, performance is a breaking change because this might cause CI's to time out.
Part of assert-rs#44. BREAKING CHANGE: Deprecated cargo path functions removed.
I decided to go with this because I feel like correctness trumps performance. For those not specifying `--target`, the performance will surprise them. For those specifying `--target`, the lack of correctness will surprise them but is less easily detected. Fixes assert-rs#4, assert-rs#44 BREAKING CHANGE: In this case, performance is a breaking change because this might cause CI's to time out.
Use cases
main_binary
should reuse the caller's target #4)Considerations
assert_cmd
is testing Rust binaries, so we should help those usersassert_cmd
and would be best to be stablized outside ofassert_cmd
Proposal
cargo run
in escargot but viaCargoBuild
CargoBuild
would have a.run()
method that would return aCargoRun
CargoRun
would have.path()
and.command()
methods.CommandCargoExt
but point people toescargot
for any custom behaviorescargot
for those use cases.At this point,
CommandCargoExt
is primarily serving a low-effort path for a "getting started" user while serving as an example of how to do more complex things (via code) and pointing to more complex APIs (via docs)Open Issues
main_binary
should reuse the caller's target #4The text was updated successfully, but these errors were encountered: