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

Configure clippy for dbg_macro and MSRV #47

Merged
merged 2 commits into from
Jan 18, 2024
Merged

Configure clippy for dbg_macro and MSRV #47

merged 2 commits into from
Jan 18, 2024

Conversation

jlapeyre
Copy link
Collaborator

This PR uses clippy to

  • Check for language constructs newer than a specified MSRV. The MSRV is set to 1.70.0.

  • Check for uses of dbg! macro. These should be present neither on the main branch nor in releases of crates in this repo.

  • This PR partially replaces Make debugging in release build a compiler error #43

#43 uses a custom macro to essential do what we do here. It is rather cumbersome and difficult to use across crates.
However #43 also defines dprintln! which is like println! but causes release builds to fail.

This is probably not as good as checking compilation with
the MSRV rustc. It can't check dependencies. But it will probably
prevent using new features in this repo.
@jlapeyre jlapeyre merged commit fa4a97e into main Jan 18, 2024
2 checks passed
@jlapeyre jlapeyre deleted the clippy-config branch January 18, 2024 01:01
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

Successfully merging this pull request may close these issues.

1 participant