vorot93/libmdbx-rs

Update of bitflags to version 2 is backwards-incompatible

sisou opened this issue · 1 comments

sisou commented

As noted in the release notes for bitflags v2 (https://github.com/bitflags/bitflags/releases/tag/2.0.0), the library changed in a backward-incompatible way, and you need to add new trait derives to your publicly exposed bitflags.

In our case, we require the Debug trait, which is now no longer derived automatically in v2. But it would probably be good to add all the previously derived traits, as shown in the above-linked release notes:

In src/flags.rs for both TableFlags and WriteFlags:

- #[derive(Default)]
+ #[derive(Default, PartialEq, Eq, PartialOrd, Ord, Hash, Debug, Clone, Copy)]

Thanks for the heads up! Should be fixed in master.