Bump serde to 1.0

This commit is contained in:
Bastien Orivel 2017-06-14 18:31:09 +02:00 committed by Simon Sapin
parent e1bce24129
commit 76d8573393
60 changed files with 487 additions and 474 deletions

609
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -11,7 +11,7 @@ workspace = "../.."
path = "lib.rs"
[dependencies]
string_cache = {version = "0.5", features = ["heapsize"]}
string_cache = {version = "0.6", features = ["heapsize"]}
[build-dependencies]
string_cache_codegen = "0.4"

View file

@ -13,10 +13,10 @@ path = "lib.rs"
bitflags = "0.7"
bluetooth_traits = {path = "../bluetooth_traits"}
device = {git = "https://github.com/servo/devices", features = ["bluetooth-test"]}
ipc-channel = "0.7"
ipc-channel = "0.8"
servo_config = {path = "../config"}
servo_rand = {path = "../rand"}
uuid = {version = "0.4", features = ["v4"]}
uuid = {version = "0.5", features = ["v4"]}
[target.'cfg(target_os = "linux")'.dependencies]
tinyfiledialogs = "2.5.9"

View file

@ -10,8 +10,8 @@ name = "bluetooth_traits"
path = "lib.rs"
[dependencies]
ipc-channel = "0.7"
ipc-channel = "0.8"
regex = "0.2"
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
servo_config = {path = "../config"}

View file

@ -12,12 +12,12 @@ path = "lib.rs"
[dependencies]
azure = {git = "https://github.com/servo/rust-azure"}
canvas_traits = {path = "../canvas_traits"}
cssparser = "0.14.0"
euclid = "0.14.4"
cssparser = "0.15"
euclid = "0.15"
gleam = "0.4"
ipc-channel = "0.7"
ipc-channel = "0.8"
log = "0.3.5"
num-traits = "0.1.32"
offscreen_gl_context = { version = "0.9", features = ["serde"] }
offscreen_gl_context = { version = "0.11", features = ["serde"] }
servo_config = {path = "../config"}
webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]}

View file

@ -10,11 +10,11 @@ name = "canvas_traits"
path = "lib.rs"
[dependencies]
cssparser = "0.14.0"
euclid = "0.14.4"
cssparser = "0.15"
euclid = "0.15"
heapsize = "0.4"
heapsize_derive = "0.1"
ipc-channel = "0.7"
serde = "0.9"
serde_derive = "0.9"
ipc-channel = "0.8"
serde = "1.0"
serde_derive = "1.0"
webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]}

View file

@ -10,11 +10,11 @@ name = "compositing"
path = "lib.rs"
[dependencies]
euclid = "0.14"
euclid = "0.15"
gfx_traits = {path = "../gfx_traits"}
gleam = "0.4"
image = "0.12"
ipc-channel = "0.7"
ipc-channel = "0.8"
log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}

View file

@ -10,14 +10,14 @@ name = "servo_config"
path = "lib.rs"
[dependencies]
euclid = "0.14.4"
euclid = "0.15"
getopts = "0.2.11"
lazy_static = "0.2"
log = "0.3.5"
num_cpus = "1.1.0"
rustc-serialize = "0.3"
serde = {version = "0.9"}
serde_derive = {version = "0.9"}
serde = "1.0"
serde_derive = "1.0"
servo_geometry = {path = "../geometry"}
servo_url = {path = "../url"}
url = "1.2"

View file

@ -18,22 +18,22 @@ canvas_traits = {path = "../canvas_traits"}
compositing = {path = "../compositing"}
debugger = {path = "../debugger"}
devtools_traits = {path = "../devtools_traits"}
euclid = "0.14.4"
euclid = "0.15"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
hyper = "0.10"
ipc-channel = "0.7"
ipc-channel = "0.8"
itertools = "0.5"
layout_traits = {path = "../layout_traits"}
log = "0.3.5"
msg = {path = "../msg"}
net = {path = "../net"}
net_traits = {path = "../net_traits"}
offscreen_gl_context = { version = "0.9", features = ["serde"] }
offscreen_gl_context = { version = "0.11", features = ["serde"] }
profile_traits = {path = "../profile_traits"}
script_traits = {path = "../script_traits"}
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
style_traits = {path = "../style_traits"}
servo_config = {path = "../config"}
servo_rand = {path = "../rand"}

View file

@ -479,7 +479,7 @@ const WARNINGS_BUFFER_SIZE: usize = 32;
/// but does not panic on deserializtion errors.
fn route_ipc_receiver_to_new_mpsc_receiver_preserving_errors<T>(ipc_receiver: IpcReceiver<T>)
-> Receiver<Result<T, IpcError>>
where T: Deserialize + Serialize + Send + 'static
where T: for<'de> Deserialize<'de> + Serialize + Send + 'static
{
let (mpsc_sender, mpsc_receiver) = channel();
ROUTER.add_route(ipc_receiver.to_opaque(), Box::new(move |message| {

View file

@ -12,11 +12,11 @@ path = "lib.rs"
[dependencies]
devtools_traits = {path = "../devtools_traits"}
hyper = "0.10"
hyper_serde = "0.6"
ipc-channel = "0.7"
hyper_serde = "0.7"
ipc-channel = "0.8"
log = "0.3.5"
msg = {path = "../msg"}
serde = "0.9"
serde_derive = "0.9"
serde_json = "0.9"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
time = "0.1"

View file

@ -514,8 +514,8 @@ fn run_server(sender: Sender<DevtoolsControlMsg>,
message: css_error.msg,
logLevel: LogLevel::Warn,
filename: css_error.filename,
lineNumber: css_error.line,
columnNumber: css_error.column,
lineNumber: css_error.line as usize,
columnNumber: css_error.column as usize,
};
handle_console_message(actors.clone(), id, None, console_message,
&actor_pipelines, &actor_workers)

View file

@ -14,10 +14,10 @@ bitflags = "0.7"
heapsize = "0.4"
heapsize_derive = "0.1"
hyper = "0.10"
hyper_serde = "0.6"
ipc-channel = "0.7"
hyper_serde = "0.7"
ipc-channel = "0.8"
msg = {path = "../msg"}
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
servo_url = {path = "../url"}
time = "0.1"

View file

@ -43,8 +43,8 @@ pub struct DevtoolsPageInfo {
#[derive(Debug, Deserialize, HeapSizeOf, Serialize, Clone)]
pub struct CSSError {
pub filename: String,
pub line: usize,
pub column: usize,
pub line: u32,
pub column: u32,
pub msg: String
}

View file

@ -14,6 +14,6 @@ path = "lib.rs"
servo = ["euclid/unstable"]
[dependencies]
app_units = "0.4.1"
euclid = "0.14"
app_units = "0.5"
euclid = "0.15"
heapsize = "0.4"

View file

@ -11,16 +11,16 @@ name = "gfx"
path = "lib.rs"
[dependencies]
app_units = "0.4.1"
app_units = "0.5"
bitflags = "0.7"
euclid = "0.14.4"
euclid = "0.15"
fnv = "1.0"
fontsan = {git = "https://github.com/servo/fontsan"}
gfx_traits = {path = "../gfx_traits"}
harfbuzz-sys = "0.1"
heapsize = "0.4"
heapsize_derive = "0.1"
ipc-channel = "0.7"
ipc-channel = "0.8"
lazy_static = "0.2"
libc = "0.2"
log = "0.3.5"
@ -28,8 +28,8 @@ msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
ordered-float = "0.4"
range = {path = "../range"}
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
servo_atoms = {path = "../atoms"}
servo_geometry = {path = "../geometry"}
servo_url = {path = "../url"}
@ -45,8 +45,8 @@ xi-unicode = "0.1.0"
[target.'cfg(target_os = "macos")'.dependencies]
byteorder = "1.0"
core-foundation = "0.3"
core-graphics = "0.7"
core-text = "4.0"
core-graphics = "0.8"
core-text = "5.0"
[target.'cfg(any(target_os = "linux", target_os = "android"))'.dependencies]
freetype = "0.2"
@ -55,11 +55,11 @@ freetype = "0.2"
servo-fontconfig = "0.2.1"
[target.'cfg(target_os = "android")'.dependencies]
xml5ever = {version = "0.7", features = ["unstable"]}
xml5ever = {version = "0.8", features = ["unstable"]}
[target.'cfg(any(target_feature = "sse2", target_feature = "neon"))'.dependencies]
simd = "0.2.0"
[target.'cfg(target_os = "windows")'.dependencies]
dwrote = "0.3"
dwrote = "0.4"
truetype = "0.26"

View file

@ -128,12 +128,12 @@ impl Serialize for CachedCTFont {
}
}
impl Deserialize for CachedCTFont {
impl<'de> Deserialize<'de> for CachedCTFont {
fn deserialize<D>(deserializer: D) -> Result<CachedCTFont, D::Error>
where D: Deserializer {
where D: Deserializer<'de> {
struct NoneOptionVisitor;
impl Visitor for NoneOptionVisitor {
impl<'de> Visitor<'de> for NoneOptionVisitor {
type Value = CachedCTFont;
fn expecting(&self, fmt: &mut fmt::Formatter) -> fmt::Result {

View file

@ -13,5 +13,5 @@ path = "lib.rs"
heapsize = "0.4"
heapsize_derive = "0.1"
range = {path = "../range"}
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"

View file

@ -10,17 +10,17 @@ name = "layout"
path = "lib.rs"
[dependencies]
app_units = "0.4.1"
app_units = "0.5"
atomic_refcell = "0.1"
bitflags = "0.7"
canvas_traits = {path = "../canvas_traits"}
euclid = "0.14.4"
euclid = "0.15"
fnv = "1.0"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.4"
html5ever = "0.17"
ipc-channel = "0.7"
html5ever = "0.18"
ipc-channel = "0.8"
libc = "0.2"
log = "0.3.5"
msg = {path = "../msg"}
@ -33,10 +33,10 @@ rayon = "0.8"
script_layout_interface = {path = "../script_layout_interface"}
script_traits = {path = "../script_traits"}
selectors = { path = "../selectors" }
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
servo_geometry = {path = "../geometry"}
serde_json = "0.9"
serde_json = "1.0"
servo_config = {path = "../config"}
servo_url = {path = "../url"}
smallvec = "0.4"

View file

@ -10,13 +10,13 @@ name = "layout_thread"
path = "lib.rs"
[dependencies]
app_units = "0.4.1"
euclid = "0.14.4"
app_units = "0.5"
euclid = "0.15"
fnv = "1.0"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.4"
ipc-channel = "0.7"
ipc-channel = "0.8"
layout = {path = "../layout"}
layout_traits = {path = "../layout_traits"}
lazy_static = "0.2"
@ -30,8 +30,8 @@ script = {path = "../script"}
script_layout_interface = {path = "../script_layout_interface"}
script_traits = {path = "../script_traits"}
selectors = { path = "../selectors" }
serde_derive = "0.9"
serde_json = "0.9"
serde_derive = "1.0"
serde_json = "1.0"
servo_config = {path = "../config"}
servo_geometry = {path = "../geometry"}
servo_url = {path = "../url"}

View file

@ -11,7 +11,7 @@ path = "lib.rs"
[dependencies]
gfx = {path = "../gfx"}
ipc-channel = "0.7"
ipc-channel = "0.8"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
profile_traits = {path = "../profile_traits"}

View file

@ -13,6 +13,6 @@ path = "lib.rs"
bitflags = "0.7"
heapsize = "0.4"
heapsize_derive = "0.1"
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]}

View file

@ -16,10 +16,10 @@ cookie = "0.6"
devtools_traits = {path = "../devtools_traits"}
flate2 = "0.2.0"
hyper = "0.10"
hyper_serde = "0.6"
hyper_serde = "0.7"
hyper-openssl = "0.2.2"
immeta = "0.3.1"
ipc-channel = "0.7"
ipc-channel = "0.8"
lazy_static = "0.2"
log = "0.3.5"
matches = "0.1"
@ -30,9 +30,9 @@ net_traits = {path = "../net_traits"}
openssl = "0.9"
parse-hosts = "0.3.0"
profile_traits = {path = "../profile_traits"}
serde = "0.9"
serde_derive = "0.9"
serde_json = "0.9"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
servo_config = {path = "../config"}
servo_url = {path = "../url"}
servo-websocket = "0.19"
@ -40,7 +40,7 @@ threadpool = "1.0"
time = "0.1.17"
unicase = "1.4.0"
url = {version = "1.2", features = ["heap_size"]}
uuid = {version = "0.4", features = ["v4"]}
uuid = {version = "0.5", features = ["v4"]}
webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]}
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))'.dependencies]

View file

@ -214,7 +214,7 @@ impl ResourceChannelManager {
}
pub fn read_json_from_file<T>(data: &mut T, config_dir: &Path, filename: &str)
where T: Deserialize
where T: for<'de> Deserialize<'de>
{
let path = config_dir.join(filename);
let display = path.display();

View file

@ -14,18 +14,18 @@ cookie = "0.6"
heapsize = "0.4"
heapsize_derive = "0.1"
hyper = "0.10"
hyper_serde = "0.6"
hyper_serde = "0.7"
image = "0.12"
immeta = "0.3.1"
ipc-channel = "0.7"
ipc-channel = "0.8"
lazy_static = "0.2"
log = "0.3.5"
msg = {path = "../msg"}
num-traits = "0.1.32"
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
servo_config = {path = "../config"}
servo_url = {path = "../url"}
url = {version = "1.2", features = ["heap_size"]}
uuid = {version = "0.4", features = ["v4", "serde"]}
uuid = {version = "0.5", features = ["v4", "serde"]}
webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]}

View file

@ -270,7 +270,7 @@ pub type IpcSendResult = Result<(), IpcError>;
/// used by net_traits::ResourceThreads to ease the use its IpcSender sub-fields
/// XXX: If this trait will be used more in future, some auto derive might be appealing
pub trait IpcSend<T>
where T: serde::Serialize + serde::Deserialize,
where T: serde::Serialize + for<'de> serde::Deserialize<'de>,
{
/// send message T
fn send(&self, T) -> IpcSendResult;

View file

@ -11,12 +11,12 @@ path = "lib.rs"
[dependencies]
profile_traits = {path = "../profile_traits"}
ipc-channel = "0.7"
ipc-channel = "0.8"
heartbeats-simple = "0.4"
log = "0.3.5"
serde = "0.9"
serde_derive = "0.9"
serde_json = "0.9"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
servo_config = {path = "../config"}
time = "0.1.12"

View file

@ -15,10 +15,10 @@ energy-profiling = ["energymon", "energy-monitor"]
[dependencies]
energy-monitor = {version = "0.2.0", optional = true}
energymon = {git = "https://github.com/energymon/energymon-rust.git", optional = true}
ipc-channel = "0.7"
ipc-channel = "0.8"
log = "0.3.5"
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
servo_config = {path = "../config"}
signpost = {git = "https://github.com/pcwalton/signpost.git"}
time = "0.1.12"

View file

@ -14,5 +14,5 @@ path = "lib.rs"
heapsize = "0.4"
heapsize_derive = "0.1"
num-traits = "0.1.32"
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"

View file

@ -18,14 +18,14 @@ debugmozjs = ['js/debugmozjs']
cmake = "0.1"
phf_codegen = "0.7.18"
phf_shared = "0.7.18"
serde_json = "0.9"
serde_json = "1.0"
[target.'cfg(any(target_os = "macos", target_os = "linux", target_os = "windows"))'.dependencies]
tinyfiledialogs = "2.5.9"
[dependencies]
angle = {git = "https://github.com/servo/angle", branch = "servo"}
app_units = "0.4.1"
app_units = "0.5"
audio-video-metadata = "0.1.2"
atomic_refcell = "0.1"
base64 = "0.5.2"
@ -35,24 +35,24 @@ byteorder = "1.0"
canvas_traits = {path = "../canvas_traits"}
caseless = "0.1.0"
cookie = "0.6"
cssparser = "0.14.0"
cssparser = "0.15"
deny_public_fields = {path = "../deny_public_fields"}
devtools_traits = {path = "../devtools_traits"}
dom_struct = {path = "../dom_struct"}
domobject_derive = {path = "../domobject_derive"}
encoding = "0.2"
euclid = "0.14.4"
euclid = "0.15"
fnv = "1.0"
gleam = "0.4"
gfx_traits = {path = "../gfx_traits"}
half = "1.0"
heapsize = "0.4"
heapsize_derive = "0.1"
html5ever = {version = "0.17", features = ["heap_size", "unstable"]}
html5ever = {version = "0.18", features = ["heap_size", "unstable"]}
hyper = "0.10"
hyper_serde = "0.6"
hyper_serde = "0.7"
image = "0.12"
ipc-channel = "0.7"
ipc-channel = "0.8"
js = {git = "https://github.com/servo/rust-mozjs", features = ["promises"]}
jstraceable_derive = {path = "../jstraceable_derive"}
lazy_static = "0.2"
@ -63,7 +63,7 @@ mime_guess = "1.8.0"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
num-traits = "0.1.32"
offscreen_gl_context = { version = "0.9", features = ["serde"] }
offscreen_gl_context = { version = "0.11", features = ["serde"] }
open = "1.1.1"
parking_lot = "0.3"
phf = "0.7.18"
@ -76,7 +76,7 @@ script_layout_interface = {path = "../script_layout_interface"}
script_plugins = {path = "../script_plugins"}
script_traits = {path = "../script_traits"}
selectors = { path = "../selectors" }
serde = "0.9"
serde = "1.0"
servo_atoms = {path = "../atoms"}
servo_config = {path = "../config"}
servo_geometry = {path = "../geometry" }
@ -90,8 +90,8 @@ time = "0.1.12"
unicode-segmentation = "1.1.0"
url = {version = "1.2", features = ["heap_size", "query_encoding"]}
utf-8 = "0.7"
uuid = {version = "0.4", features = ["v4"]}
xml5ever = {version = "0.7", features = ["unstable"]}
uuid = {version = "0.5", features = ["v4"]}
xml5ever = {version = "0.8", features = ["unstable"]}
webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc"]}
webvr = {path = "../webvr"}
webvr_traits = {path = "../webvr_traits"}

View file

@ -405,7 +405,7 @@ unsafe impl<A, B> JSTraceable for fn(A) -> B {
}
}
unsafe impl<T> JSTraceable for IpcSender<T> where T: Deserialize + Serialize {
unsafe impl<T> JSTraceable for IpcSender<T> where T: for<'de> Deserialize<'de> + Serialize {
#[inline]
unsafe fn trace(&self, _: *mut JSTracer) {
// Do nothing
@ -427,7 +427,7 @@ unsafe impl JSTraceable for () {
}
}
unsafe impl<T> JSTraceable for IpcReceiver<T> where T: Deserialize + Serialize {
unsafe impl<T> JSTraceable for IpcReceiver<T> where T: for<'de> Deserialize<'de> + Serialize {
#[inline]
unsafe fn trace(&self, _: *mut JSTracer) {
// Do nothing

View file

@ -2322,7 +2322,7 @@ impl ScriptThread {
}
fn handle_css_error_reporting(&self, pipeline_id: PipelineId, filename: String,
line: usize, column: usize, msg: String) {
line: u32, column: u32, msg: String) {
let sender = match self.devtools_chan {
Some(ref sender) => sender,
None => return,

View file

@ -10,16 +10,16 @@ name = "script_layout_interface"
path = "lib.rs"
[dependencies]
app_units = "0.4.1"
app_units = "0.5"
atomic_refcell = "0.1"
canvas_traits = {path = "../canvas_traits"}
cssparser = "0.14.0"
euclid = "0.14.4"
cssparser = "0.15"
euclid = "0.15"
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.4"
heapsize_derive = "0.1"
html5ever = "0.17"
ipc-channel = "0.7"
html5ever = "0.18"
ipc-channel = "0.8"
libc = "0.2"
log = "0.3.5"
msg = {path = "../msg"}

View file

@ -29,7 +29,7 @@ impl ParseErrorReporter for CSSErrorReporter {
url: &ServoUrl,
line_number_offset: u64) {
let location = input.source_location(position);
let line_offset = location.line + line_number_offset as usize;
let line_offset = location.line + line_number_offset as u32;
if log_enabled!(log::LogLevel::Info) {
info!("Url:\t{}\n{}:{} {}",
url.as_str(),

View file

@ -10,26 +10,26 @@ name = "script_traits"
path = "lib.rs"
[dependencies]
app_units = "0.4"
app_units = "0.5"
bluetooth_traits = {path = "../bluetooth_traits"}
canvas_traits = {path = "../canvas_traits"}
cookie = "0.6"
devtools_traits = {path = "../devtools_traits"}
euclid = "0.14.4"
euclid = "0.15"
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.4"
heapsize_derive = "0.1"
hyper = "0.10"
hyper_serde = "0.6"
ipc-channel = "0.7"
hyper_serde = "0.7"
ipc-channel = "0.8"
libc = "0.2"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
offscreen_gl_context = { version = "0.9", features = ["serde"] }
offscreen_gl_context = { version = "0.11", features = ["serde"] }
profile_traits = {path = "../profile_traits"}
rustc-serialize = "0.3.4"
serde = "0.9"
serde_derive = "0.9"
serde = "1.0"
serde_derive = "1.0"
servo_atoms = {path = "../atoms"}
servo_url = {path = "../url"}
style_traits = {path = "../style_traits", features = ["servo"]}

View file

@ -96,8 +96,8 @@ impl Serialize for UntrustedNodeAddress {
}
}
impl Deserialize for UntrustedNodeAddress {
fn deserialize<D: Deserializer>(d: D) -> Result<UntrustedNodeAddress, D::Error> {
impl<'de> Deserialize<'de> for UntrustedNodeAddress {
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<UntrustedNodeAddress, D::Error> {
let value: usize = try!(Deserialize::deserialize(d));
Ok(UntrustedNodeAddress::from_id(value))
}
@ -295,7 +295,7 @@ pub enum ConstellationControlMsg {
/// The strings are key, old value and new value.
DispatchStorageEvent(PipelineId, StorageType, ServoUrl, Option<String>, Option<String>, Option<String>),
/// Report an error from a CSS parser for the given pipeline
ReportCSSError(PipelineId, String, usize, usize, String),
ReportCSSError(PipelineId, String, u32, u32, String),
/// Reload the given page.
Reload(PipelineId),
/// Notifies the script thread of WebVR events.

View file

@ -24,7 +24,7 @@ gecko_like_types = []
[dependencies]
bitflags = "0.7"
matches = "0.1"
cssparser = "0.14.0"
cssparser = "0.15"
log = "0.3"
fnv = "1.0"
phf = "0.7.18"

View file

@ -30,10 +30,10 @@ debugger = {path = "../debugger"}
devtools = {path = "../devtools"}
devtools_traits = {path = "../devtools_traits"}
env_logger = "0.4"
euclid = "0.14.4"
euclid = "0.15"
gfx = {path = "../gfx"}
gleam = "0.4"
ipc-channel = "0.7"
ipc-channel = "0.8"
layout_thread = {path = "../layout_thread"}
log = "0.3"
msg = {path = "../msg"}

View file

@ -14,5 +14,5 @@ servo = ["serde", "heapsize"]
[dependencies]
heapsize = {version = "0.4.0", optional = true}
serde = {version = "0.9", optional = true}
serde = {version = "1.0", optional = true}
nodrop = {version = "0.1.8"}

View file

@ -447,11 +447,11 @@ impl<T: HeapSizeOf> HeapSizeOf for Arc<T> {
}
#[cfg(feature = "servo")]
impl<T: Deserialize> Deserialize for Arc<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for Arc<T>
{
fn deserialize<D>(deserializer: D) -> Result<Arc<T>, D::Error>
where
D: ::serde::de::Deserializer,
D: ::serde::de::Deserializer<'de>,
{
T::deserialize(deserializer).map(Arc::new)
}

View file

@ -30,7 +30,7 @@ testing = []
gecko_debug = ["nsstring_vendor/gecko_debug"]
[dependencies]
app_units = "0.4.1"
app_units = "0.5"
arrayvec = "0.3.20"
arraydeque = "0.2.3"
atomic_refcell = "0.1"
@ -38,14 +38,14 @@ bitflags = "0.7"
bit-vec = "0.4.3"
byteorder = "1.0"
cfg-if = "0.1.0"
cssparser = "0.14.0"
cssparser = "0.15"
encoding = {version = "0.2", optional = true}
euclid = "0.14.4"
euclid = "0.15"
fnv = "1.0"
heapsize = {version = "0.4", optional = true}
heapsize_derive = {version = "0.1", optional = true}
itoa = "0.3"
html5ever = {version = "0.17", optional = true}
html5ever = {version = "0.18", optional = true}
lazy_static = "0.2"
log = "0.3"
matches = "0.1"
@ -59,9 +59,9 @@ pdqsort = "0.1.0"
precomputed-hash = "0.1"
rayon = "0.8"
selectors = { path = "../selectors" }
serde = {version = "0.9", optional = true}
serde_derive = {version = "0.9", optional = true}
servo_arc = { path = "../servo_arc" }
serde = {version = "1.0", optional = true}
serde_derive = {version = "1.0", optional = true}
servo_atoms = {path = "../atoms", optional = true}
servo_config = {path = "../config", optional = true}
smallvec = "0.4"

View file

@ -169,7 +169,7 @@ impl ParseErrorReporter for RustLogReporter {
line_number_offset: u64) {
if log_enabled!(log::LogLevel::Info) {
let location = input.source_location(position);
let line_offset = location.line + line_number_offset as usize;
let line_offset = location.line + line_number_offset as u32;
info!("Url:\t{}\n{}:{} {}", url.as_str(), line_offset, location.column, error.to_string())
}
}

View file

@ -528,7 +528,7 @@ fn get_location_with_offset(
offset: u64
) -> SourceLocation {
SourceLocation {
line: location.line + offset as usize - 1,
line: location.line + offset as u32 - 1,
column: location.column,
}
}

View file

@ -15,12 +15,12 @@ servo = ["heapsize", "heapsize_derive", "serde", "serde_derive",
gecko = []
[dependencies]
app_units = "0.4.1"
app_units = "0.5"
bitflags = "0.7"
cssparser = "0.14.0"
euclid = "0.14.4"
cssparser = "0.15"
euclid = "0.15"
heapsize = {version = "0.4", optional = true}
heapsize_derive = {version = "0.1", optional = true}
selectors = { path = "../selectors" }
serde = {version = "0.9", optional = true}
serde_derive = {version = "0.9", optional = true}
serde = {version = "1.0", optional = true}
serde_derive = {version = "1.0", optional = true}

View file

@ -12,9 +12,9 @@ path = "lib.rs"
[dependencies]
heapsize = {version = "0.4"}
heapsize_derive = {version = "0.1"}
serde = {version = "0.9"}
serde_derive = {version = "0.9"}
serde = {version = "1.0"}
serde_derive = {version = "1.0"}
servo_rand = {path = "../rand"}
url = {version = "1.2", features = ["heap_size"]}
url_serde = {version = "0.1.3"}
uuid = {version = "0.4.0", features = ["v4", "serde"]}
url_serde = {version = "0.2"}
uuid = {version = "0.5.0", features = ["v4", "serde"]}

View file

@ -209,9 +209,9 @@ impl serde::Serialize for ServoUrl {
}
}
impl serde::Deserialize for ServoUrl {
impl<'de> serde::Deserialize<'de> for ServoUrl {
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: serde::Deserializer,
where D: serde::Deserializer<'de>,
{
url_serde::deserialize(deserializer).map(Self::from_url)
}

View file

@ -12,10 +12,10 @@ path = "lib.rs"
[dependencies]
base64 = "0.5.2"
cookie = "0.6"
euclid = "0.14"
euclid = "0.15"
hyper = "0.10"
image = "0.12"
ipc-channel = "0.7"
ipc-channel = "0.8"
log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
@ -25,5 +25,5 @@ script_traits = {path = "../script_traits"}
servo_config = {path = "../config"}
servo_url = {path = "../url"}
url = {version = "1.2", features = ["heap_size"]}
uuid = {version = "0.4", features = ["v4"]}
uuid = {version = "0.5", features = ["v4"]}
webdriver = "0.22"

View file

@ -10,7 +10,7 @@ name = "webvr"
path = "lib.rs"
[dependencies]
ipc-channel = "0.7"
ipc-channel = "0.8"
log = "0.3"
msg = {path = "../msg"}
script_traits = {path = "../script_traits"}

View file

@ -10,8 +10,8 @@ name = "webvr_traits"
path = "lib.rs"
[dependencies]
ipc-channel = "0.7"
ipc-channel = "0.8"
msg = {path = "../msg"}
rust-webvr = {version = "0.4", features = ["serde-serialization"]}
serde = "0.9"
serde_derive = "0.9"
rust-webvr = {version = "0.5", features = ["serde-serialization"]}
serde = "1.0"
serde_derive = "1.0"

View file

@ -20,7 +20,7 @@ debugmozjs = ["libservo/debugmozjs"]
[dependencies]
compositing = {path = "../../components/compositing"}
devtools = {path = "../../components/devtools"}
euclid = "0.14.4"
euclid = "0.15"
gleam = "0.4"
glutin_app = {path = "../glutin"}
libc = "0.2"
@ -37,7 +37,7 @@ webrender_traits = {git = "https://github.com/servo/webrender", features = ["ipc
[target.'cfg(target_os="macos")'.dependencies]
objc = "0.2"
cocoa = "0.8"
cocoa = "0.9"
[target.'cfg(target_os="linux")'.dependencies]
x11 = "2.3"

View file

@ -16,7 +16,7 @@ gecko_debug = ["style/gecko_debug"]
[dependencies]
atomic_refcell = "0.1"
cssparser = "0.14.0"
cssparser = "0.15"
env_logger = {version = "0.4", default-features = false} # disable `regex` to reduce code size
libc = "0.2"
log = {version = "0.3.5", features = ["release_max_level_info"]}

View file

@ -11,13 +11,13 @@ path = "lib.rs"
[dependencies]
bitflags = "0.7"
compositing = {path = "../../components/compositing"}
euclid = "0.14.4"
euclid = "0.15"
gleam = "0.4"
log = "0.3.5"
msg = {path = "../../components/msg"}
net_traits = {path = "../../components/net_traits"}
script_traits = {path = "../../components/script_traits"}
servo-glutin = "0.10"
servo-glutin = "0.11"
servo_geometry = {path = "../../components/geometry"}
servo_config = {path = "../../components/config"}
servo_url = {path = "../../components/url"}

View file

@ -10,7 +10,7 @@ path = "lib.rs"
doctest = false
[dependencies]
cssparser = "0.14.0"
cssparser = "0.15"
gfx = {path = "../../../components/gfx"}
ipc-channel = "0.7"
ipc-channel = "0.8"
style = {path = "../../../components/style"}

View file

@ -15,8 +15,8 @@ devtools_traits = {path = "../../../components/devtools_traits"}
flate2 = "0.2.0"
hyper = "0.10"
hyper-openssl = "0.2"
hyper_serde = "0.6"
ipc-channel = "0.7"
hyper_serde = "0.7"
ipc-channel = "0.8"
msg = {path = "../../../components/msg"}
net = {path = "../../../components/net"}
net_traits = {path = "../../../components/net_traits"}

View file

@ -10,6 +10,6 @@ path = "lib.rs"
doctest = false
[dependencies]
ipc-channel = "0.7"
ipc-channel = "0.8"
profile = {path = "../../../components/profile"}
profile_traits = {path = "../../../components/profile_traits"}

View file

@ -10,7 +10,7 @@ path = "lib.rs"
doctest = false
[dependencies]
euclid = "0.14.4"
euclid = "0.15"
msg = {path = "../../../components/msg"}
script = {path = "../../../components/script"}
servo_url = {path = "../../../components/url"}

View file

@ -14,10 +14,10 @@ testing = ["style/testing"]
[dependencies]
byteorder = "1.0"
app_units = "0.4.1"
cssparser = "0.14.0"
euclid = "0.14.4"
html5ever = "0.17"
app_units = "0.5"
cssparser = "0.15"
euclid = "0.15"
html5ever = "0.18"
parking_lot = "0.3"
rayon = "0.8"
rustc-serialize = "0.3"

View file

@ -24,7 +24,7 @@ impl ParseErrorReporter for ErrorringErrorReporter {
url: &ServoUrl,
line_number_offset: u64) {
let location = input.source_location(position);
let line_offset = location.line + line_number_offset as usize;
let line_offset = location.line + line_number_offset as u32;
panic!("CSS error: {}\t\n{}:{} {}", url.as_str(), line_offset, location.column, error.to_string());
}
}

View file

@ -249,8 +249,8 @@ fn test_parse_stylesheet() {
struct CSSError {
pub url : ServoUrl,
pub line: usize,
pub column: usize,
pub line: u32,
pub column: u32,
pub message: String
}
@ -275,7 +275,7 @@ impl ParseErrorReporter for CSSInvalidErrorReporterTest {
line_number_offset: u64) {
let location = input.source_location(position);
let line_offset = location.line + line_number_offset as usize;
let line_offset = location.line + line_number_offset as u32;
let mut errors = self.errors.lock().unwrap();
errors.push(

View file

@ -16,9 +16,9 @@ testing = ["style/testing"]
[dependencies]
atomic_refcell = "0.1"
cssparser = "0.14.0"
cssparser = "0.15"
env_logger = "0.4"
euclid = "0.14.4"
euclid = "0.15"
geckoservo = {path = "../../../ports/geckolib"}
libc = "0.2"
log = {version = "0.3.5", features = ["release_max_level_info"]}