See the Cargo announcement blog post for more a global view of the feature.
This document is intented to summarize the principal ways Cargo interacts with
the unexpected_cfgs lint and --check-cfg flag. It is not intended to provide
individual details, for that refer to the --check-cfg documentation and
to the Cargo book.
Cargo always enables checking conditional configurations with Rust 1.80 and upper.
This is to help with verifying that the crate is correctly handling conditional compilation for