bincode-org / bincode

A binary encoder / decoder implementation in Rust.
MIT License
2.63k stars 265 forks source link

make config::DefaultOptions::new `const` #696

Open droundy opened 6 months ago

droundy commented 6 months ago

We'd really appreciate having config::DefaultOptions::new() be const, so we can define our configuration as a static (or const) value.

Even better would be to implement const inherent methods duplicating the Options trait, so that an arbitrary configuration can be stored in a static value.

VictorKoenders commented 6 months ago

Heads up that bincode 1 is not actively being developed any more, so this will probably not be fixed before bincode 2 releases