arcnmx / wireplumber.rs

wireplumber rust bindings
https://arcnmx.github.io/wireplumber.rs/main/wireplumber/
MIT License
21 stars 3 forks source link

Rework `Constraint` type #3

Open arcnmx opened 2 years ago

arcnmx commented 2 years ago

By using enums and specific types for the supported primitives, Constraint could be represented better. It's a bit messy because some constraints take a Number | Boolean, others String | Number, and then there's RangeInclusive<Number>...

Since the glib-serde dep is currently only used by Constraint's serde impls, so it could be removed as a core dep! (this now uses LuaVariant, which it won't need anymore once the above rework is completed)