From 12eca9ec579ad351988b84bda6c0e774c86cfee6 Mon Sep 17 00:00:00 2001 From: Sebastian Wicki Date: Tue, 26 Nov 2019 18:28:47 +0100 Subject: [PATCH] Bump versions and deprecate crate This crate has been deprecated. The `type_name` intrinsic has been stablized in Rust 1.38. Users of this crate are asked to migrate to `std::any::type_name`. Signed-off-by: Sebastian Wicki --- Cargo.toml | 4 ++-- README.md | 3 +++ src/lib.rs | 5 +++++ typename_derive/Cargo.toml | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 55245c5..2e5c60c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typename" -version = "0.1.1" +version = "0.1.2" authors = ["Sebastian Wicki "] license = "MIT/Apache-2.0" repository = "https://github.com/strymon-system/typename" @@ -9,7 +9,7 @@ description = "Stable alternative to Rust's type_name intrinsic." [dependencies.typename_derive] optional = true -version = "0.1.3" +version = "0.1.4" path = "./typename_derive" [features] diff --git a/README.md b/README.md index 5b2c7eb..c4f292d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ A compatible, safe and stable alternative to Rust's [`std::intrinsics::type_name`](https://doc.rust-lang.org/std/intrinsics/fn.type_name.html) intrinsic. + +> **DEPRECATION NOTICE**: This crate has been deprecated. The `type_name` intrinsic has been stablized in [Rust 1.38](https://blog.rust-lang.org/2019/09/26/Rust-1.38.0.html#std:any::type_name). Users of this crate are asked to migrate to [`std::any::type_name`](https://doc.rust-lang.org/std/any/fn.type_name.html). + # Example ```rust diff --git a/src/lib.rs b/src/lib.rs index 321577b..093396c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,6 +6,11 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +//! **DEPRECATION NOTICE**: This crate has been deprecated. The `type_name` +//! intrinsic has been stablized in +//! [Rust 1.38](https://blog.rust-lang.org/2019/09/26/Rust-1.38.0.html#std:any::type_name). +//! Users of this crate are asked to migrate to [`std::any::type_name`](https://doc.rust-lang.org/std/any/fn.type_name.html). +//! //! This crate provides a compatible, safe and stable alternative to Rust's //! [`std::intrinsics::type_name`](https://doc.rust-lang.org/std/intrinsics/fn.type_name.html) //! intrinsic. This is achieved through the [`TypeName`](trait.TypeName.html) diff --git a/typename_derive/Cargo.toml b/typename_derive/Cargo.toml index 8b265a4..e56ee0a 100644 --- a/typename_derive/Cargo.toml +++ b/typename_derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typename_derive" -version = "0.1.3" +version = "0.1.4" authors = ["Sebastian Wicki "] license = "MIT/Apache-2.0" repository = "https://github.com/strymon-system/typename"