You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a proc-macro that I want to make sure that the results are always no-std compatible (I'll add this to the CI),
for that I need this to check the examples/tests of my crate instead of the crate itself.
In cargo clippy/check/fmt you can use: --examples / --tests
Thanks.
The text was updated successfully, but these errors were encountered:
👍 Checks for examples shouldn't be that hard to implement. I'll look into that! (A PR would also be welcome 😉 )
Cheking tests is more complicated though, I think. IIRC tests always require std to be present, due to how the normal cargo test harness works. So it would be really hard to separate the std that's coming from the test environment from the test contents that are supposed to be no_std.
Yes, that's the crate :)
Hmm maybe tonight I'll try to look at your code see if I can make a PR for that myself.
Never wrote custom commands to cargo so might be interesting to look at how it's implemented
Hi,
I have a proc-macro that I want to make sure that the results are always
no-std
compatible (I'll add this to the CI),for that I need this to check the examples/tests of my crate instead of the crate itself.
In cargo clippy/check/fmt you can use:
--examples
/--tests
Thanks.
The text was updated successfully, but these errors were encountered: