diff options
author | Boris Chiou <boris.chiou@gmail.com> | 2019-10-31 21:35:05 +0000 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-11-04 13:36:32 +0100 |
commit | 40ede5bacb42ad0ebe10d6bec846606591b926d0 (patch) | |
tree | 716c9002a3564ba2a5214592563eabcbe249023f /components/style/lib.rs | |
parent | d99606a841cb0c00cc71745ef3c229730c1bb007 (diff) | |
download | servo-40ede5bacb42ad0ebe10d6bec846606591b926d0.tar.gz servo-40ede5bacb42ad0ebe10d6bec846606591b926d0.zip |
style: Use serde to serialize LengthPercentage and StyleRayFunction.
We need to pass these two types into the compositor, so we need a better
way to serialize these rust types. We use serde and bincode to
serialize/deserialize them, and use ByteBuf to pass the &[u8] data
through IPC. We define StyleVecU8 for FFI usage only.
Differential Revision: https://phabricator.services.mozilla.com/D50688
Diffstat (limited to 'components/style/lib.rs')
-rw-r--r-- | components/style/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/style/lib.rs b/components/style/lib.rs index 35070b0f254..354950f9c15 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -78,7 +78,6 @@ extern crate parking_lot; extern crate precomputed_hash; extern crate rayon; extern crate selectors; -#[cfg(feature = "servo")] #[macro_use] extern crate serde; pub extern crate servo_arc; |