-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to new std::io #347
Comments
What is your rustc version? are you updated? |
rustc 1.0.0-nightly (4db0b3246 2015-02-25) (built 2015-02-26) |
It looks like old_io just went away. Although I'm not entirely sure. Here's the reddit discussion: http://www.reddit.com/r/rust/comments/2wrc3c/read_from_stdin_in_alpha_2_without_using_old_io/ |
No, it's the upstream changes that broke the thing. OpenSSL and Cookie now use new paths. (Sorry, I kinda participated in making that happen, but then again... THEY broke because their upstream dependencies moved to use the new paths. So something's gotta be done.) |
Btw. I'm currently tinkering with Hyper, trying to fix things. No promises (I'm a rust noob), but I'll send a PR right away if I manage to get it to build. |
I should've said something earlier, but I actually started working on a fix a while ago (hours ago). The io changes touch a lot of code, so the fix is very large. I'm haven't finished the entire thing yet, and am going to bed, but will finish up tomorrow. |
@reem i'm just about done with the patch. I found out from sfackler that the change was coming, and started working on it right away. |
Thanks for all the quick effort. "My dear, here we must run as fast as we can, just to stay in place." - Alice in Wonderland |
@seanmonstar I'll defer to your patch then, instead of finishing mine. |
@seanmonstar any progress? I can work on a patch if you're busy. |
@reem yes progress. Everything compiles, just fixing up a couple broken tests. Should have PR shortly. |
All instances of `old_io` and `old_path` were switched to use the new shiny `std::io`, `std::net`, and `std::path` modules. This means that `Request` and `Response` implement `Read` and `Write` now. Because of the changes to `TcpListener`, this also takes the opportunity to correct the method usage of `Server`. As with other languages/frameworks, the server is first created with a handler, and then a host/port is passed to a `listen` method. This reverses what `Server` used to do. Closes #347 BREAKING CHANGE: Check the docs. Everything was touched.
All instances of `old_io` and `old_path` were switched to use the new shiny `std::io`, `std::net`, and `std::path` modules. This means that `Request` and `Response` implement `Read` and `Write` now. Because of the changes to `TcpListener`, this also takes the opportunity to correct the method usage of `Server`. As with other languages/frameworks, the server is first created with a handler, and then a host/port is passed to a `listen` method. This reverses what `Server` used to do. Closes #347 BREAKING CHANGE: Check the docs. Everything was touched.
All instances of `old_io` and `old_path` were switched to use the new shiny `std::io`, `std::net`, and `std::path` modules. This means that `Request` and `Response` implement `Read` and `Write` now. Because of the changes to `TcpListener`, this also takes the opportunity to correct the method usage of `Server`. As with other languages/frameworks, the server is first created with a handler, and then a host/port is passed to a `listen` method. This reverses what `Server` used to do. Closes #347 BREAKING CHANGE: Check the docs. Everything was touched.
just ran into the same issue :/ |
the same :( |
@softprops @daogangtang You can use PR #354 for now. |
Yep, I'm depending on git revs for now [dependencies.hyper]
git = "https://github.com/hyperium/hyper.git"
rev = "2ce4385c163e1a9a393c89743cf04e047b776e83" |
Is "Read" live in the rev mentioned above? I'm getting
Should I wait a few more days for things to settle down? |
All instances of `old_io` and `old_path` were switched to use the new shiny `std::io`, `std::net`, and `std::path` modules. This means that `Request` and `Response` implement `Read` and `Write` now. Because of the changes to `TcpListener`, this also takes the opportunity to correct the method usage of `Server`. As with other languages/frameworks, the server is first created with a handler, and then a host/port is passed to a `listen` method. This reverses what `Server` used to do. Closes #347 BREAKING CHANGE: Check the docs. Everything was touched.
@John-Nagle |
OK, got that. My RSS reader is working again with the latest Hyper, thanks to all of you. |
Installed Rust nightly build, after not using Rust for 3 weeks. Hyper won't compile any more.
The I/O libraries changed. Again. Not your fault. Sigh.
The text was updated successfully, but these errors were encountered: