aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/lib.rs
diff options
context:
space:
mode:
authorBoris Chiou <boris.chiou@gmail.com>2019-10-31 21:35:05 +0000
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-11-04 13:36:32 +0100
commit40ede5bacb42ad0ebe10d6bec846606591b926d0 (patch)
tree716c9002a3564ba2a5214592563eabcbe249023f /components/style/lib.rs
parentd99606a841cb0c00cc71745ef3c229730c1bb007 (diff)
downloadservo-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.rs1
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;