about summary refs log tree commit diff
path: root/src/libstd/sys/common
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-03-06 15:36:08 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-03-06 15:36:08 -0800
commitfd86a01bb9f23921c82017485d88fe14448e78fe (patch)
treeef2b8e32f3f88e0c968ed186b1dfb5e528fa1e1d /src/libstd/sys/common
parent1a30412ebf4363acf92f1edafa2c007617c94d02 (diff)
parent9aea749b835a6fdcad6f2840a00adac996cc0339 (diff)
downloadrust-fd86a01bb9f23921c82017485d88fe14448e78fe.tar.gz
rust-fd86a01bb9f23921c82017485d88fe14448e78fe.zip
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/sys/common')
-rw-r--r--src/libstd/sys/common/net.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/common/net.rs b/src/libstd/sys/common/net.rs
index 228362e3d62..344645dfc1a 100644
--- a/src/libstd/sys/common/net.rs
+++ b/src/libstd/sys/common/net.rs
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(deprecated)]
+
 use prelude::v1::*;
 use self::SocketStatus::*;
 use self::InAddr::*;