Deprecate in favor of socket2

This commit is contained in:
Taiki Endo 2021-04-25 21:40:50 +09:00
parent 93ba86181f
commit 21a5caec97
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,7 @@
# Version 1.2.0
- **This crate is now deprecated in favor of [socket2](https://crates.io/crates/socket2).**
# Version 1.1.0
- Increase MSRV to rustc 1.46.

View File

@ -3,7 +3,7 @@ name = "nb-connect"
# When publishing a new version:
# - Update CHANGELOG.md
# - Create "v1.x.y" git tag
version = "1.1.0"
version = "1.2.0"
authors = [
"Stjepan Glavina <stjepang@gmail.com>",
"Jayce Fayne <jayce.fayne@mailbox.org>",

View File

@ -1,4 +1,4 @@
# nb-connect
# nb-connect (deprecated)
[![Build](https://github.com/smol-rs/nb-connect/workflows/Build%20and%20test/badge.svg)](
https://github.com/smol-rs/nb-connect/actions)
@ -9,6 +9,8 @@ https://crates.io/crates/nb-connect)
[![Documentation](https://docs.rs/nb-connect/badge.svg)](
https://docs.rs/nb-connect)
**This crate is now deprecated in favor of [socket2](https://crates.io/crates/socket2).**
Non-blocking TCP or Unix connect.
This crate allows you to create a [`TcpStream`] or a [`UnixStream`] in a non-blocking way,

View File

@ -31,6 +31,10 @@
//! ```
#![warn(missing_docs, missing_debug_implementations, rust_2018_idioms)]
#![deprecated(
since = "1.2.0",
note = "This crate is now deprecated in favor of [socket2](https://crates.io/crates/socket2)."
)]
use std::io;
use std::net::{SocketAddr, TcpStream};