diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-06 15:36:08 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-06 15:36:08 -0800 |
| commit | fd86a01bb9f23921c82017485d88fe14448e78fe (patch) | |
| tree | ef2b8e32f3f88e0c968ed186b1dfb5e528fa1e1d /src/libstd/old_io | |
| parent | 1a30412ebf4363acf92f1edafa2c007617c94d02 (diff) | |
| parent | 9aea749b835a6fdcad6f2840a00adac996cc0339 (diff) | |
rollup merge of #22813: alexcrichton/deprecate-net
The `std::net` primitives should be ready for use now and as a result the old ones are now deprecated and slated for removal. Most TCP/UDP functionality is now available through `std::net` but the `std::old_io::net::pipe` module is removed entirely from the standard library. Unix socket funtionality can be found in sfackler's [`unix_socket`][unix] crate and there is currently no replacement for named pipes on Windows. [unix]: https://crates.io/crates/unix_socket [breaking-change]
Diffstat (limited to 'src/libstd/old_io')
| -rw-r--r-- | src/libstd/old_io/net/mod.rs | 4 | ||||
| -rw-r--r-- | src/libstd/old_io/net/pipe.rs | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/libstd/old_io/net/mod.rs b/src/libstd/old_io/net/mod.rs index bbe3a71dcc0..a3567290b0e 100644 --- a/src/libstd/old_io/net/mod.rs +++ b/src/libstd/old_io/net/mod.rs @@ -10,6 +10,10 @@ //! Networking I/O +#![deprecated(since = "1.0.0", + reason = "replaced with new I/O primitives in `std::net`")] +#![unstable(feature = "old_io")] + use old_io::{IoError, IoResult, InvalidInput}; use ops::FnMut; use option::Option::None; diff --git a/src/libstd/old_io/net/pipe.rs b/src/libstd/old_io/net/pipe.rs index d05669d32b8..2ecaf515f08 100644 --- a/src/libstd/old_io/net/pipe.rs +++ b/src/libstd/old_io/net/pipe.rs @@ -19,6 +19,12 @@ //! instances as clients. #![allow(missing_docs)] +#![deprecated(since = "1.0.0", + reason = "will be removed to be reintroduced at a later date; \ + in the meantime consider using the `unix_socket` crate \ + for unix sockets; there is currently no replacement \ + for named pipes")] +#![unstable(feature = "old_io")] use prelude::v1::*; |
