Running cargo check and clippy in doc code

Hi everyone!
So we can put some code in our documentation using //! ```rust and even test that code with cargo test but what about running cargo clippy and cargo check?
I have some examples in my documentation but I realize that, with it evolving, I end up having some imports not used BUT cannot have a cargo check error to automate this detection. Is there a way to do that?
Thank you!

You can run cargo check --tests.

Unfortunately, it doesn't seem to be enough.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.