debugging_helpers

Crates.iodebugging_helpers
lib.rsdebugging_helpers
version0.2.0
sourcesrc
created_at2023-10-11 03:56:59.87098
updated_at2024-09-20 23:21:04.663539
descriptionTrivial functions to make debugging easier
homepage
repositoryhttps://github.com/c-git/debugging_helpers
max_upload_size
id999743
size21,057
One (c-git)

documentation

https://docs.rs/debugging_helpers

README

debugging-helpers

Small collection of simple functions to make debugging easier. Nothing specular but stuff I don't want to have write repeatedly for each project. Doesn't contain any production ready code. It's mostly workarounds that you can use during debugging. For example it allows you to compare for equality two types that do not support Eq but do support Debug. It accomplishes this by comparing their debug output. This is terribly inefficient and only works if the debug output includes the part of the type you are interested in checking if it is the same. While this is not suitable for production, this allows you to quickly check for equality when debugging a type that only implements Debug but not Eq.

License

All code in this repository is dual-licensed under either:

at your option. This means you can select the license you prefer! This dual-licensing approach is the de-facto standard in the Rust ecosystem and there are very good reasons to include both as noted in this issue on Bevy's repo.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 28

cargo fmt