rust-bitcoin/rust-bitcoinconsensus

Use `bitflags` crate to implement bit flags

Kixunil opened this issue · 3 comments

The crate is well-established, maintained by several Rust developers and considered idiomatic for implementing bit flags.

I like it -- but their MSRV is 1.46 unfortunately which is ahead of us.

I guess there could be an older, sufficiently good version. The macro is not rocket science and I don't expect any vulnerabilities. At worst we could fork it/copy-paste it.

We don't want a dependency for something this trivial. (see #60 for more context.)