-
Notifications
You must be signed in to change notification settings - Fork 489
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
Many types now missing Debug implementations in v0.29 #1392
Comments
Ok I just saw in the v0.29 Changelog that Debug is no longer implemented by default in the new generator. Is there a flag to turn that back on somehow if needed? |
Yes, the |
Deriving |
IMO, Debug should really be implemented on everything. It is part of the Rust API Guidelines: https://rust-lang.github.io/api-guidelines/debuggability.html?highlight=debug#all-public-types-implement-debug-c-debug and are a huge help when debugging issues, as they allow quickly printing the contents of a structure. The problem with not implementing debug is that it causes a cascade of problems: Structures containing windows-rs structs will themselves not be able to derive debug, neither will their parent structures, etc... This makes working with crates that don't implement debug incredibly painful. I really hope that this is reverted, or at least that a compile-time option to enable Debug is provided. |
Good feedback. Much appreciated. |
Thanks for being so responsive on this! :) |
Similar to #1391, tried to compile https://github.com/deviceplug/btleplug with no changes, got a bunch of places where we expect Debug implementations that are now missing with no code changes other than updating from v0.28.
The text was updated successfully, but these errors were encountered: