{"action":"created","issue":{"url":"https://api.github.com/repos/cyderize/rust-websocket/issues/44","labels_url":"https://api.github.com/repos/cyderize/rust-websocket/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/cyderize/rust-websocket/issues/44/comments","events_url":"https://api.github.com/repos/cyderize/rust-websocket/issues/44/events","html_url":"https://github.com/cyderize/rust-websocket/issues/44","id":91073040,"number":44,"title":"doesn't build on 1.1 release","user":{"login":"blaenk","id":84680,"avatar_url":"https://avatars.githubusercontent.com/u/84680?v=3","gravatar_id":"","url":"https://api.github.com/users/blaenk","html_url":"https://github.com/blaenk","followers_url":"https://api.github.com/users/blaenk/followers","following_url":"https://api.github.com/users/blaenk/following{/other_user}","gists_url":"https://api.github.com/users/blaenk/gists{/gist_id}","starred_url":"https://api.github.com/users/blaenk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blaenk/subscriptions","organizations_url":"https://api.github.com/users/blaenk/orgs","repos_url":"https://api.github.com/users/blaenk/repos","events_url":"https://api.github.com/users/blaenk/events{/privacy}","received_events_url":"https://api.github.com/users/blaenk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-25T20:53:22Z","updated_at":"2015-07-03T04:54:59Z","closed_at":"2015-07-03T04:54:59Z","body":"TL;DR: Quick (and IMO correct) fix for now is to pin the hyper dependency to the last version before the refactor, 0.5.2. Iron [did the same thing](https://github.com/iron/iron/blob/master/Cargo.toml#L23) while it gets familiar with the changes.\r\n\r\nSo 1.1 is out. Hyper made some refactorings that changed some stuff around, but mainly with respect to this package it concerns the fact that `parse_response` is now in `hyper::http::h1` instead of just `hyper::http`, and so on. I was working on a fix but the problem I ran into was this at the end of `src/server/mod.rs`:\r\n\r\n``` rust\r\n/// Represents a connection to the server that has not been processed yet.\r\npub struct Connection<R: Read, W: Write>(R, W);\r\n\r\nimpl<R: Read, W: Write> Connection<R, W> {\r\n\t/// Process this connection and read the request.\r\n\tpub fn read_request(self) -> io::Result<Request<R, W>> {\r\n\t\tmatch Request::read(self.0, self.1) {\r\n\t\t\tOk(result) => { Ok(result) },\r\n\t\t\tErr(err) => {\r\n\t\t\t\tErr(io::Error::new(io::ErrorKind::InvalidInput, err))\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nThis `io::Error::new` method requires that the error payload `err` 'implements' `Into<Box<Error + Send + Sync>>`. The error is that the `err` is not `Sync` or `Send`. These kinds of bugs are annoying to track down because it's difficult to tell which field is implicitly breaking the `Sync/Send` bounds. If I had to guess, it's also coming from the hyper refactors, so one of the hyper-related error variants is most likely the culprit."},"comment":{"url":"https://api.github.com/repos/cyderize/rust-websocket/issues/comments/118232540","html_url":"https://github.com/cyderize/rust-websocket/issues/44#issuecomment-118232540","issue_url":"https://api.github.com/repos/cyderize/rust-websocket/issues/44","id":118232540,"user":{"login":"cyderize","id":8522468,"avatar_url":"https://avatars.githubusercontent.com/u/8522468?v=3","gravatar_id":"","url":"https://api.github.com/users/cyderize","html_url":"https://github.com/cyderize","followers_url":"https://api.github.com/users/cyderize/followers","following_url":"https://api.github.com/users/cyderize/following{/other_user}","gists_url":"https://api.github.com/users/cyderize/gists{/gist_id}","starred_url":"https://api.github.com/users/cyderize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyderize/subscriptions","organizations_url":"https://api.github.com/users/cyderize/orgs","repos_url":"https://api.github.com/users/cyderize/repos","events_url":"https://api.github.com/users/cyderize/events{/privacy}","received_events_url":"https://api.github.com/users/cyderize/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T04:54:59Z","updated_at":"2015-07-03T04:54:59Z","body":"Fixed at version 0.12.2"}}