Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Bump versions and deprecate crate
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gandro committed Nov 26, 2019
1 parent 31d2240 commit 12eca9e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typename"
version = "0.1.1"
version = "0.1.2"
authors = ["Sebastian Wicki <[email protected]>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/strymon-system/typename"
Expand All @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion typename_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typename_derive"
version = "0.1.3"
version = "0.1.4"
authors = ["Sebastian Wicki <[email protected]>"]
license = "MIT/Apache-2.0"
repository = "https://github.com/strymon-system/typename"
Expand Down

0 comments on commit 12eca9e

Please sign in to comment.