Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Commit

Permalink
Merge pull request #12 from smol-rs/deprecated
Browse files Browse the repository at this point in the history
Deprecate in favor of socket2
  • Loading branch information
taiki-e authored May 1, 2021
2 parents 93ba861 + 21a5cae commit 758a347
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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>",
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 758a347

Please # to comment.