servo/components/derive_common
Emilio Cobos Álvarez f30837baf1 style: Allow to derive Parse/ToCss/SpecifiedValueInfo on bitflags
We keep getting this pattern of properties that have a set of joint and
disjoint flags, and copy-pasting or writing the same parsing and
serialization code in slightly different ways.

container-type is one such type, and I think we should have a single way
of dealing with this, thus implement deriving for various traits for
bitflags, with an attribute that says which flags are single vs mixed.

See docs and properties I ported. The remaining ones I left TODOs with,
they are a bit trickier but can be ported with some care.

Differential Revision: https://phabricator.services.mozilla.com/D142418
2023-08-16 17:46:41 +02:00
..
Cargo.toml Start the transition to workspace dependencies 2023-05-17 11:59:35 +02:00
cg.rs style: Allow to derive Parse/ToCss/SpecifiedValueInfo on bitflags 2023-08-16 17:46:41 +02:00
lib.rs Upgrade remaining components to edition 2018 2023-02-18 09:42:37 +01:00