servo/components/shared/base
Josh Matthews 7b16ae26b4
Reduce indexing boilerplate for serializable/transferrable objects. (#36624)
Rather than creating unique types for each pipeline-namespaced index
type (eg. MessagePortId, DomExceptionId, etc.), we can create a generic
common type that uses a marker to prevent type confusion. This change
allows us to reduce the boilerplate code required when implementing
serializable/transferable interfaces, since the structured clone
implementation can rely on the common type.

Testing: Existing WPT tests for serialization and transferring provide
coverage.

---------

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
2025-04-22 02:02:02 +00:00
..
Cargo.toml Organize component Cargo.toml dependencies (#36224) 2025-03-30 19:03:54 +00:00
cross_process_instant.rs deps: Upgrade to webrender@0.66 (#35325) 2025-02-07 11:57:26 +00:00
generate-unicode-block.py base: Remove ucd dependency (#32424) 2024-06-03 17:10:01 +00:00
generic_channel.rs Move webgl_channel into base crate (#32339) 2024-05-24 06:13:20 +00:00
id.rs Reduce indexing boilerplate for serializable/transferrable objects. (#36624) 2025-04-22 02:02:02 +00:00
lib.rs script: Create a CrossProcessInstant to enable serializable monotonic time (#33282) 2024-09-05 18:50:09 +00:00
print_tree.rs
text.rs clippy: Fix collapsible_match warning in components/shared (#33664) 2024-10-07 07:52:38 +00:00
unicode_block.rs base: Remove ucd dependency (#32424) 2024-06-03 17:10:01 +00:00