Skip to content

Commit

Permalink
Update ipc-channel to 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nox committed Feb 16, 2017
1 parent 3d98e30 commit 85e2648
Show file tree
Hide file tree
Showing 32 changed files with 133 additions and 91 deletions.
150 changes: 96 additions & 54 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/bluetooth/Cargo.toml
Expand Up @@ -13,7 +13,7 @@ path = "lib.rs"
bitflags = "0.7"
bluetooth_traits = {path = "../bluetooth_traits"}
device = {git = "https://github.com/servo/devices", features = ["bluetooth-test"]}
ipc-channel = "0.5"
ipc-channel = "0.6.3"
servo_rand = {path = "../rand"}
uuid = {version = "0.3.1", features = ["v4"]}

Expand Down
2 changes: 1 addition & 1 deletion components/bluetooth_traits/Cargo.toml
Expand Up @@ -10,7 +10,7 @@ name = "bluetooth_traits"
path = "lib.rs"

[dependencies]
ipc-channel = "0.5"
ipc-channel = "0.6.3"
regex = "0.2"
serde = "0.8"
serde_derive = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion components/canvas/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ canvas_traits = {path = "../canvas_traits"}
cssparser = {version = "0.9", features = ["heap_size", "serde-serialization"]}
euclid = "0.10.1"
gleam = "0.2.8"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
log = "0.3.5"
num-traits = "0.1.32"
offscreen_gl_context = "0.5.0"
Expand Down
2 changes: 1 addition & 1 deletion components/canvas_traits/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ cssparser = {version = "0.9", features = ["heap_size", "serde-serialization"]}
euclid = "0.10.1"
heapsize = "0.3.0"
heapsize_derive = "0.1"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
plugins = {path = "../plugins"}
serde = {version = "0.8", features = ["unstable"]}
serde_derive = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion components/compositing/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ euclid = "0.10.1"
gfx_traits = {path = "../gfx_traits"}
gleam = "0.2.8"
image = "0.12"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
Expand Down
2 changes: 1 addition & 1 deletion components/constellation/Cargo.toml
Expand Up @@ -20,7 +20,7 @@ devtools_traits = {path = "../devtools_traits"}
euclid = "0.10.1"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
ipc-channel = "0.5"
ipc-channel = "0.6.3"
layout_traits = {path = "../layout_traits"}
log = "0.3.5"
msg = {path = "../msg"}
Expand Down
4 changes: 2 additions & 2 deletions components/constellation/constellation.rs
Expand Up @@ -78,6 +78,7 @@ use event_loop::EventLoop;
use frame::{Frame, FrameChange, FrameState, FrameTreeIterator, FullFrameTreeIterator};
use gfx::font_cache_thread::FontCacheThread;
use gfx_traits::Epoch;
use ipc_channel::SerializeError;
use ipc_channel::ipc::{self, IpcSender};
use ipc_channel::router::ROUTER;
use layout_traits::LayoutThreadFactory;
Expand Down Expand Up @@ -109,7 +110,6 @@ use servo_remutex::ReentrantMutex;
use servo_url::ServoUrl;
use std::borrow::ToOwned;
use std::collections::{HashMap, VecDeque};
use std::io::Error as IOError;
use std::iter::once;
use std::marker::PhantomData;
use std::process;
Expand Down Expand Up @@ -1228,7 +1228,7 @@ impl<Message, LTF, STF> Constellation<Message, LTF, STF>
self.pipelines.remove(&pipeline_id);
}

fn handle_send_error(&mut self, pipeline_id: PipelineId, err: IOError) {
fn handle_send_error(&mut self, pipeline_id: PipelineId, err: SerializeError) {
// Treat send error the same as receiving a panic message
debug!("Pipeline {:?} send error ({}).", pipeline_id, err);
let top_level_frame_id = self.get_top_level_frame_for_pipeline(pipeline_id);
Expand Down
4 changes: 2 additions & 2 deletions components/constellation/event_loop.rs
Expand Up @@ -6,9 +6,9 @@
//! view of a script thread. When an `EventLoop` is dropped, an `ExitScriptThread`
//! message is sent to the script thread, asking it to shut down.

use ipc_channel::SerializeError;
use ipc_channel::ipc::IpcSender;
use script_traits::ConstellationControlMsg;
use std::io::Error as IOError;
use std::marker::PhantomData;
use std::rc::Rc;

Expand All @@ -34,7 +34,7 @@ impl EventLoop {
}

/// Send a message to the event loop.
pub fn send(&self, msg: ConstellationControlMsg) -> Result<(), IOError> {
pub fn send(&self, msg: ConstellationControlMsg) -> Result<(), SerializeError> {
self.script_chan.send(msg)
}

Expand Down
8 changes: 4 additions & 4 deletions components/constellation/pipeline.rs
Expand Up @@ -11,6 +11,7 @@ use euclid::scale_factor::ScaleFactor;
use euclid::size::TypedSize2D;
use event_loop::EventLoop;
use gfx::font_cache_thread::FontCacheThread;
use ipc_channel::SerializeError;
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
use ipc_channel::router::ROUTER;
use layout_traits::LayoutThreadFactory;
Expand All @@ -31,7 +32,6 @@ use std::collections::HashMap;
#[cfg(not(windows))]
use std::env;
use std::ffi::OsStr;
use std::io::Error as IOError;
use std::process;
use std::rc::Rc;
use std::sync::mpsc::Sender;
Expand Down Expand Up @@ -178,7 +178,7 @@ pub struct InitialPipelineState {
impl Pipeline {
/// Starts a layout thread, and possibly a script thread, in
/// a new process if requested.
pub fn spawn<Message, LTF, STF>(state: InitialPipelineState) -> Result<Pipeline, IOError>
pub fn spawn<Message, LTF, STF>(state: InitialPipelineState) -> Result<Pipeline, SerializeError>
where LTF: LayoutThreadFactory<Message=Message>,
STF: ScriptThreadFactory<Message=Message>
{
Expand Down Expand Up @@ -523,7 +523,7 @@ impl UnprivilegedPipelineContent {
}

#[cfg(not(target_os = "windows"))]
pub fn spawn_multiprocess(self) -> Result<(), IOError> {
pub fn spawn_multiprocess(self) -> Result<(), SerializeError> {
use gaol::sandbox::{self, Sandbox, SandboxMethods};
use ipc_channel::ipc::IpcOneShotServer;
use sandboxing::content_process_sandbox_profile;
Expand Down Expand Up @@ -571,7 +571,7 @@ impl UnprivilegedPipelineContent {
}

#[cfg(target_os = "windows")]
pub fn spawn_multiprocess(self) -> Result<(), IOError> {
pub fn spawn_multiprocess(self) -> Result<(), SerializeError> {
error!("Multiprocess is not supported on Windows.");
process::exit(1);
}
Expand Down
2 changes: 1 addition & 1 deletion components/devtools/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ devtools_traits = {path = "../devtools_traits"}
encoding = "0.2"
hyper = "0.9.9"
hyper_serde = "0.1.4"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
log = "0.3.5"
msg = {path = "../msg"}
plugins = {path = "../plugins"}
Expand Down
2 changes: 1 addition & 1 deletion components/devtools_traits/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ heapsize = "0.3.0"
heapsize_derive = "0.1"
hyper = "0.9.9"
hyper_serde = "0.1.4"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
msg = {path = "../msg"}
serde = "0.8"
serde_derive = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion components/gfx/Cargo.toml
Expand Up @@ -20,7 +20,7 @@ gfx_traits = {path = "../gfx_traits"}
harfbuzz-sys = "0.1"
heapsize = "0.3.0"
heapsize_derive = "0.1"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
lazy_static = "0.2"
libc = "0.2"
log = "0.3.5"
Expand Down
2 changes: 1 addition & 1 deletion components/layout/Cargo.toml
Expand Up @@ -21,7 +21,7 @@ gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.3.0"
html5ever-atoms = "0.1"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
libc = "0.2"
log = "0.3.5"
msg = {path = "../msg"}
Expand Down
2 changes: 1 addition & 1 deletion components/layout_thread/Cargo.toml
Expand Up @@ -16,7 +16,7 @@ fnv = "1.0"
gfx = {path = "../gfx"}
gfx_traits = {path = "../gfx_traits"}
heapsize = "0.3.0"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
layout = {path = "../layout"}
layout_traits = {path = "../layout_traits"}
lazy_static = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion components/layout_traits/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ path = "lib.rs"

[dependencies]
gfx = {path = "../gfx"}
ipc-channel = "0.5"
ipc-channel = "0.6.3"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
profile_traits = {path = "../profile_traits"}
Expand Down
2 changes: 1 addition & 1 deletion components/net/Cargo.toml
Expand Up @@ -18,7 +18,7 @@ flate2 = "0.2.0"
hyper = "0.9.9"
hyper_serde = "0.1.4"
immeta = "0.3.1"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
lazy_static = "0.2"
log = "0.3.5"
matches = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion components/net_traits/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ path = "lib.rs"

[dependencies]
msg = {path = "../msg"}
ipc-channel = "0.5"
ipc-channel = "0.6.3"
heapsize = "0.3.0"
heapsize_derive = "0.1"
hyper = "0.9.9"
Expand Down
4 changes: 2 additions & 2 deletions components/net_traits/lib.rs
Expand Up @@ -39,12 +39,12 @@ use hyper::header::{ContentType, Headers, ReferrerPolicy as ReferrerPolicyHeader
use hyper::http::RawStatus;
use hyper::mime::{Attr, Mime};
use hyper_serde::Serde;
use ipc_channel::SerializeError;
use ipc_channel::ipc::{self, IpcReceiver, IpcSender};
use ipc_channel::router::ROUTER;
use request::{Request, RequestInit};
use response::{HttpsState, Response};
use servo_url::ServoUrl;
use std::io::Error as IOError;
use storage_thread::StorageThreadMsg;
use websocket::header;

Expand Down Expand Up @@ -266,7 +266,7 @@ impl<T: FetchResponseListener> Action<T> for FetchResponseMsg {
/// Handle to a resource thread
pub type CoreResourceThread = IpcSender<CoreResourceMsg>;

pub type IpcSendResult = Result<(), IOError>;
pub type IpcSendResult = Result<(), SerializeError>;

/// Abstraction of the ability to send a particular type of message,
/// used by net_traits::ResourceThreads to ease the use its IpcSender sub-fields
Expand Down
2 changes: 1 addition & 1 deletion components/profile/Cargo.toml
Expand Up @@ -12,7 +12,7 @@ path = "lib.rs"
[dependencies]
profile_traits = {path = "../profile_traits"}
plugins = {path = "../plugins"}
ipc-channel = "0.5"
ipc-channel = "0.6.3"
heartbeats-simple = "0.3"
log = "0.3.5"
serde = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion components/profile_traits/Cargo.toml
Expand Up @@ -15,7 +15,7 @@ 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.5"
ipc-channel = "0.6.3"
log = "0.3.5"
plugins = {path = "../plugins"}
serde = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion components/script/Cargo.toml
Expand Up @@ -49,7 +49,7 @@ html5ever-atoms = {version = "0.1", features = ["heap_size"]}
hyper = "0.9.9"
hyper_serde = "0.1.4"
image = "0.12"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
js = {git = "https://github.com/servo/rust-mozjs", features = ["promises"]}
jstraceable_derive = {path = "../jstraceable_derive"}
libc = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion components/script_layout_interface/Cargo.toml
Expand Up @@ -19,7 +19,7 @@ gfx_traits = {path = "../gfx_traits"}
heapsize = "0.3.0"
heapsize_derive = "0.1"
html5ever-atoms = "0.1"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
libc = "0.2"
log = "0.3.5"
msg = {path = "../msg"}
Expand Down
2 changes: 1 addition & 1 deletion components/script_traits/Cargo.toml
Expand Up @@ -21,7 +21,7 @@ heapsize = "0.3.0"
heapsize_derive = "0.1"
hyper = "0.9.9"
hyper_serde = "0.1.4"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
libc = "0.2"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
Expand Down
2 changes: 1 addition & 1 deletion components/servo/Cargo.toml
Expand Up @@ -34,7 +34,7 @@ env_logger = "0.4"
euclid = "0.10.1"
gfx = {path = "../gfx"}
gleam = "0.2"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
layout_thread = {path = "../layout_thread"}
log = "0.3"
msg = {path = "../msg"}
Expand Down
2 changes: 1 addition & 1 deletion components/webdriver_server/Cargo.toml
Expand Up @@ -14,7 +14,7 @@ cookie = {version = "0.2.5", features = ["serialize-rustc"]}
euclid = "0.10.1"
hyper = "0.9.9"
image = "0.12"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
log = "0.3.5"
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
Expand Down
2 changes: 1 addition & 1 deletion components/webvr/Cargo.toml
Expand Up @@ -10,7 +10,7 @@ name = "webvr"
path = "lib.rs"

[dependencies]
ipc-channel = "0.5"
ipc-channel = "0.6.3"
log = "0.3"
msg = {path = "../msg"}
script_traits = {path = "../script_traits"}
Expand Down
2 changes: 1 addition & 1 deletion components/webvr_traits/Cargo.toml
Expand Up @@ -10,7 +10,7 @@ name = "webvr_traits"
path = "lib.rs"

[dependencies]
ipc-channel = "0.5"
ipc-channel = "0.6.3"
msg = {path = "../msg"}
serde = "0.8"
serde_derive = "0.8"
Expand Down
2 changes: 1 addition & 1 deletion servo-tidy.toml
Expand Up @@ -31,7 +31,7 @@ num = []

[ignore]
# Ignored packages with duplicated versions
packages = ["bitflags", "byteorder", "semver"]
packages = ["bitflags", "byteorder", "mio", "miow", "slab", "semver"]
# Files that are ignored for all tidy and lint checks.
files = [
# Generated and upstream code combined with our own. Could use cleanup
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/gfx/Cargo.toml
Expand Up @@ -11,5 +11,5 @@ doctest = false

[dependencies]
gfx = {path = "../../../components/gfx"}
ipc-channel = "0.5"
ipc-channel = "0.6.3"
style = {path = "../../../components/style"}
2 changes: 1 addition & 1 deletion tests/unit/net/Cargo.toml
Expand Up @@ -16,7 +16,7 @@ devtools_traits = {path = "../../../components/devtools_traits"}
flate2 = "0.2.0"
hyper = "0.9.9"
hyper_serde = "0.1.4"
ipc-channel = "0.5"
ipc-channel = "0.6.3"
msg = {path = "../../../components/msg"}
net = {path = "../../../components/net"}
net_traits = {path = "../../../components/net_traits"}
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/profile/Cargo.toml
Expand Up @@ -10,6 +10,6 @@ path = "lib.rs"
doctest = false

[dependencies]
ipc-channel = "0.5"
ipc-channel = "0.6.3"
profile = {path = "../../../components/profile"}
profile_traits = {path = "../../../components/profile_traits"}

0 comments on commit 85e2648

Please sign in to comment.