diff --git a/Cargo.lock b/Cargo.lock index 466f41ea0e..dc2ee85de9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ [root] name = "wrench" -version = "0.2.1" +version = "0.2.2" dependencies = [ "app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "base64 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -8,7 +8,7 @@ dependencies = [ "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "clap 2.20.5 (registry+https://github.com/rust-lang/crates.io-index)", "crossbeam 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", - "dwrote 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "dwrote 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "font-loader 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", @@ -19,8 +19,8 @@ dependencies = [ "osmesa-sys 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)", - "webrender 0.20.0", - "webrender_traits 0.21.0", + "webrender 0.21.0", + "webrender_traits 0.22.0", "yaml-rust 0.3.4 (git+https://github.com/vvuk/yaml-rust)", ] @@ -316,7 +316,7 @@ dependencies = [ [[package]] name = "dwrote" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "gdi32-sys 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -324,7 +324,7 @@ dependencies = [ "lazy_static 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", + "serde_derive 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)", "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -865,26 +865,6 @@ name = "serde" version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "serde_codegen" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "quote 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen_internals 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)", - "syn 0.10.8 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_syntax 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "serde_codegen_internals" -version = "0.11.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "syn 0.10.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "serde_codegen_internals" version = "0.14.0" @@ -965,15 +945,6 @@ name = "strsim" version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "syn" -version = "0.10.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "quote 0.3.13 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "syn" version = "0.11.6" @@ -992,51 +963,6 @@ dependencies = [ "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "syntex" -version = "0.54.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "syntex_errors 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_syntax 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "syntex_errors" -version = "0.54.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "libc 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_pos 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)", - "term 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "syntex_pos" -version = "0.54.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "rustc-serialize 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", -] - -[[package]] -name = "syntex_syntax" -version = "0.54.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "bitflags 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "libc 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)", - "log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)", - "rustc-serialize 0.3.22 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_errors 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)", - "syntex_pos 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)", - "term 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)", - "unicode-xid 0.0.4 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "target_build_utils" version = "0.3.0" @@ -1059,15 +985,6 @@ dependencies = [ "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "term" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "kernel32-sys 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", - "winapi 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "term_size" version = "0.2.3" @@ -1207,7 +1124,7 @@ dependencies = [ [[package]] name = "webrender" -version = "0.20.0" +version = "0.21.0" dependencies = [ "angle 0.1.2 (git+https://github.com/servo/angle?branch=servo)", "app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1217,7 +1134,7 @@ dependencies = [ "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "core-graphics 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "core-text 4.0.0 (registry+https://github.com/rust-lang/crates.io-index)", - "dwrote 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "dwrote 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.5 (registry+https://github.com/rust-lang/crates.io-index)", "freetype 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1230,24 +1147,23 @@ dependencies = [ "thread_profiler 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "threadpool 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.36 (registry+https://github.com/rust-lang/crates.io-index)", - "webrender_traits 0.21.0", + "webrender_traits 0.22.0", ] [[package]] name = "webrender_traits" -version = "0.21.0" +version = "0.22.0" dependencies = [ "app_units 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "byteorder 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "core-graphics 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", - "dwrote 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", + "dwrote 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)", "euclid 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", "heapsize 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)", "ipc-channel 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "offscreen_gl_context 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)", - "serde_codegen 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde_derive 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1295,8 +1211,8 @@ dependencies = [ "euclid 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", "gleam 0.2.32 (registry+https://github.com/rust-lang/crates.io-index)", "glutin 0.7.4 (registry+https://github.com/rust-lang/crates.io-index)", - "webrender 0.20.0", - "webrender_traits 0.21.0", + "webrender 0.21.0", + "webrender_traits 0.22.0", ] [[package]] @@ -1385,7 +1301,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum dlib 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "148bce4ce1c36c4509f29cb54e62c2bd265551a9b00b38070fad551a851866ec" "checksum dtoa 0.4.1 (registry+https://github.com/rust-lang/crates.io-index)" = "80c8b71fd71146990a9742fc06dcbbde19161a267e0ad4e572c35162f4578c90" "checksum dwmapi-sys 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "07c4c7cc7b396419bc0a4d90371d0cee16cb5053b53647d287c0b728000c41fe" -"checksum dwrote 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "cf3aaa348263128e64ebdae55b48e85fe57258db2d21ffa1ac32ef18e6545333" +"checksum dwrote 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "74114b6b49d6731835da7a28a3642651451e315f7f9b9d04e907e65a45681796" "checksum enum_primitive 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "be4551092f4d519593039259a9ed8daedf0da12e5109c5280338073eaeb81180" "checksum error-chain 0.7.2 (registry+https://github.com/rust-lang/crates.io-index)" = "318cb3c71ee4cdea69fdc9e15c173b245ed6063e1709029e8fd32525a881120f" "checksum euclid 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "34559b159306de36203986eff799f83ef2bfb301a29fad333883f1a74a4cc6b0" @@ -1450,8 +1366,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum serde 0.7.15 (registry+https://github.com/rust-lang/crates.io-index)" = "1b0e0732aa8ec4267f61815a396a942ba3525062e3bd5520aa8419927cfc0a92" "checksum serde 0.8.23 (registry+https://github.com/rust-lang/crates.io-index)" = "9dad3f759919b92c3068c696c15c3d17238234498bbdcc80f2c469606f948ac8" "checksum serde 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)" = "204db0f2a5335be7313fd4453132fd56d2085aed081c673140a256772903e116" -"checksum serde_codegen 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1f94de585a73dfc312ca77194209278a587bf90d3edc6c2d0fc479b0ed71d1f0" -"checksum serde_codegen_internals 0.11.3 (registry+https://github.com/rust-lang/crates.io-index)" = "afad7924a009f859f380e4a2e3a509a845c2ac66435fcead74a4d983b21ae806" "checksum serde_codegen_internals 0.14.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a5113d5bd16471b183803b374f0fe4877ad9658b95e33b11f4a004d73aacc74a" "checksum serde_derive 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)" = "e88ec062a02cbebfd6276044a305d665a9919b497aa6acb2e12c070d1a50d32d" "checksum serde_json 0.9.8 (registry+https://github.com/rust-lang/crates.io-index)" = "6501ac6f8b74f9b1033f7ddf79a08edfa0f58d6f8e3190cb8dc97736afa257a8" @@ -1462,16 +1376,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum siphasher 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2ffc669b726f2bc9a3bcff66e5e23b56ba6bf70e22a34c3d7b6d0b3450b65b84" "checksum slab 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "17b4fcaed89ab08ef143da37bc52adbcc04d4a69014f4c1208d6b51f0c47bc23" "checksum strsim 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "b4d15c810519a91cf877e7e36e63fe068815c678181439f2f29e2562147c3694" -"checksum syn 0.10.8 (registry+https://github.com/rust-lang/crates.io-index)" = "58fd09df59565db3399efbba34ba8a2fec1307511ebd245d0061ff9d42691673" "checksum syn 0.11.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0e28da8d02d75d1e58b89258e0741128f0b0d8a8309fb5c627be0fbd37a76c67" "checksum synom 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8fece1853fb872b0acdc3ff88f37c474018e125ef81cd4cb8c0ca515746b62ed" -"checksum syntex 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb3f52553a966675982404dc34028291b347e0c9a9c0b0b34f2da6be8a0443f8" -"checksum syntex_errors 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dee2f6e49c075f71332bb775219d5982bee6732d26227fa1ae1b53cdb12f5cc5" -"checksum syntex_pos 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)" = "8df3921c7945dfb9ffc53aa35adb2cf4313b5ab5f079c3619b3d4eb82a0efc2b" -"checksum syntex_syntax 0.54.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dc960085bae44591e22d01f6c0e82a8aec832f8659aca556cdf8ecbdac2bb47b" "checksum target_build_utils 0.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f42dc058080c19c6a58bdd1bf962904ee4f5ef1fe2a81b529f31dacc750c679f" "checksum tempfile 2.1.5 (registry+https://github.com/rust-lang/crates.io-index)" = "3213fd2b7ed87e39306737ccfac04b1233b57a33ca64cfbf52f2ffaa2b765e2f" -"checksum term 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)" = "d168af3930b369cfe245132550579d47dfd873d69470755a19c2c6568dbbd989" "checksum term_size 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "07b6c1ac5b3fffd75073276bca1ceed01f67a28537097a2a9539e116e50fb21a" "checksum thread_profiler 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "cf947d192a9be60ef5131cc7a4648886ba89d712f16700ebbf80c8a69d05d48f" "checksum threadpool 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "59f6d3eff89920113dac9db44dde461d71d01e88a5b57b258a0466c32b5d7fe1" diff --git a/webrender/Cargo.toml b/webrender/Cargo.toml index a5672583e3..26c4f67037 100644 --- a/webrender/Cargo.toml +++ b/webrender/Cargo.toml @@ -1,16 +1,14 @@ [package] name = "webrender" -version = "0.20.0" +version = "0.21.0" authors = ["Glenn Watson "] license = "MPL-2.0" repository = "https://github.com/servo/webrender" build = "build.rs" [features] -default = ["codegen", "freetype-lib"] -codegen = ["webrender_traits/codegen"] +default = ["freetype-lib"] freetype-lib = ["freetype/servo-freetype-sys"] -serde_derive = ["webrender_traits/serde_derive"] profiler = ["thread_profiler/thread_profiler"] [dependencies] @@ -19,7 +17,7 @@ bincode = "1.0.0-alpha2" bit-set = "0.4" byteorder = "1.0" euclid = "0.11" -fnv="1.0" +fnv = "1.0" gleam = "0.2.30" lazy_static = "0.2" log = "0.3" @@ -27,7 +25,7 @@ num-traits = "0.1.32" offscreen_gl_context = {version = "0.6", features = ["serde", "osmesa"]} time = "0.1" threadpool = "1.3.2" -webrender_traits = {path = "../webrender_traits", default-features = false} +webrender_traits = {path = "../webrender_traits"} bitflags = "0.7" gamma-lut = "0.1" thread_profiler = "0.1.1" @@ -39,7 +37,7 @@ angle = {git = "https://github.com/servo/angle", branch = "servo"} freetype = { version = "0.2", default-features = false } [target.'cfg(target_os = "windows")'.dependencies] -dwrote = "0.2" +dwrote = "0.3" [target.'cfg(target_os = "macos")'.dependencies] core-graphics = "0.7.0" diff --git a/webrender_traits/Cargo.toml b/webrender_traits/Cargo.toml index 27bcd77baf..0a65a0449d 100644 --- a/webrender_traits/Cargo.toml +++ b/webrender_traits/Cargo.toml @@ -1,15 +1,12 @@ [package] name = "webrender_traits" -version = "0.21.0" +version = "0.22.0" authors = ["Glenn Watson "] license = "MPL-2.0" repository = "https://github.com/servo/webrender" -build = "build.rs" [features] -default = ["codegen"] nightly = ["euclid/unstable", "serde/unstable"] -codegen = ["serde_codegen", "serde_codegen/with-syntex"] ipc = ["ipc-channel"] [dependencies] @@ -21,15 +18,10 @@ heapsize = "0.3.6" ipc-channel = {version = "0.7", optional = true} offscreen_gl_context = {version = "0.6", features = ["serde"]} serde = "0.9" -serde_derive = {version = "0.9", optional = true} +serde_derive = "0.9" [target.'cfg(target_os = "macos")'.dependencies] core-graphics = "0.7" [target.'cfg(target_os = "windows")'.dependencies] -dwrote = "0.2" - -[build-dependencies.serde_codegen] -version = "0.9" -default_features = false -optional = true +dwrote = "0.3" diff --git a/webrender_traits/build.rs b/webrender_traits/build.rs deleted file mode 100644 index c07d8d8a6e..0000000000 --- a/webrender_traits/build.rs +++ /dev/null @@ -1,46 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ - -#[cfg(all(feature = "serde_codegen", not(feature = "serde_derive")))] -mod inner { - extern crate serde_codegen; - - use std::env; - use std::path::Path; - - pub fn main() { - let out_dir = env::var_os("OUT_DIR").unwrap(); - - let src = Path::new("src/types.rs"); - let dst = Path::new(&out_dir).join("types.rs"); - - serde_codegen::expand(&src, &dst).unwrap(); - println!("cargo:rerun-if-changed=src/types.rs"); - } -} - -#[cfg(all(feature = "serde_derive", not(feature = "serde_codegen")))] -mod inner { - pub fn main() {} -} - -#[cfg(all(feature = "serde_codegen", feature = "serde_derive"))] -mod inner { - pub fn main() { - panic!("serde_codegen and serde_derive are both used. \ - You probably forgot --no-default-features.") - } -} - -#[cfg(not(any(feature = "serde_codegen", feature = "serde_derive")))] -mod inner { - pub fn main() { - panic!("Neither serde_codegen nor serde_derive are used. " - "You probably want --features serde_derive --no-default-features.") - } -} - -fn main() { - inner::main(); -} diff --git a/webrender_traits/src/api.rs b/webrender_traits/src/api.rs index 6c0e0147df..86cd468d8e 100644 --- a/webrender_traits/src/api.rs +++ b/webrender_traits/src/api.rs @@ -6,7 +6,7 @@ use byteorder::{LittleEndian, WriteBytesExt}; use channel::{self, MsgSender, PayloadHelperMethods, PayloadSender}; use offscreen_gl_context::{GLContextAttributes, GLLimits}; use std::cell::Cell; -use {ApiMsg, ColorF, DisplayListBuilder, Epoch, ImageDescriptor}; +use {ApiMsg, ColorF, Epoch, ImageDescriptor}; use {FontKey, IdNamespace, ImageKey, NativeFontHandle, PipelineId}; use {RenderApiSender, ResourceId, ScrollEventPhase, ScrollLayerState, ScrollLocation, ServoScrollRootId}; use {GlyphKey, GlyphDimensions, ImageData, WebGLContextId, WebGLCommand, TileSize}; diff --git a/webrender_traits/src/lib.rs b/webrender_traits/src/lib.rs index e6771db6ca..9a7fdd7093 100644 --- a/webrender_traits/src/lib.rs +++ b/webrender_traits/src/lib.rs @@ -3,7 +3,6 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #![cfg_attr(feature = "nightly", feature(nonzero))] -#![cfg_attr(feature = "serde_derive", feature(rustc_attrs, structural_match))] extern crate app_units; extern crate byteorder; @@ -17,7 +16,6 @@ extern crate heapsize; extern crate ipc_channel; extern crate offscreen_gl_context; extern crate serde; -#[cfg(feature = "serde_derive")] #[macro_use] extern crate serde_derive; @@ -27,10 +25,6 @@ extern crate core_graphics; #[cfg(target_os = "windows")] extern crate dwrote; -#[cfg(feature = "serde_codegen")] -include!(concat!(env!("OUT_DIR"), "/types.rs")); - -#[cfg(feature = "serde_derive")] include!("types.rs"); mod units; diff --git a/wrench/Cargo.toml b/wrench/Cargo.toml index a08adbd375..6683f7d968 100644 --- a/wrench/Cargo.toml +++ b/wrench/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wrench" -version = "0.2.1" +version = "0.2.2" authors = ["Vladimir Vukicevic "] build = "build.rs" license = "MPL-2.0" @@ -22,19 +22,14 @@ time = "0.1" crossbeam = "0.2" osmesa-sys = { version = "0.1.2", optional = true } osmesa-src = { git = "https://github.com/servo/osmesa-src", optional = true } +webrender = {path = "../webrender"} +webrender_traits = {path = "../webrender_traits"} [features] headless = [ "osmesa-sys", "osmesa-src" ] -[dependencies.webrender] -path = "../webrender" - -[dependencies.webrender_traits] -path = "../webrender_traits" -default_features = false - [target.'cfg(target_os = "windows")'.dependencies] -dwrote = "0.2" +dwrote = "0.3" [target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies] font-loader = "0.1.4"