From 850e2d4d938ebc4a3bf64cb67cee15e970a5ecfd Mon Sep 17 00:00:00 2001 From: FujiApple Date: Fri, 20 Oct 2023 22:23:25 +0800 Subject: [PATCH] chore: update version to `0.6.0` --- README.md | 12 ++++++------ bounded-static-derive/Cargo.toml | 4 ++-- bounded-static-derive/README.md | 12 ++++++------ bounded-static-derive/src/lib.rs | 12 ++++++------ bounded-static/Cargo.toml | 4 ++-- bounded-static/src/lib.rs | 4 ++-- 6 files changed, 24 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 11a8a7b..fb81c3e 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@ ![ci](https://github.com/fujiapple852/bounded-static/actions/workflows/ci.yml/badge.svg) -[![Documentation](https://docs.rs/bounded-static/badge.svg)](https://docs.rs/bounded-static/0.5.0) -[![Crate](https://img.shields.io/crates/v/bounded-static.svg)](https://crates.io/crates/bounded-static/0.5.0) +[![Documentation](https://docs.rs/bounded-static/badge.svg)](https://docs.rs/bounded-static/0.6.0) +[![Crate](https://img.shields.io/crates/v/bounded-static.svg)](https://crates.io/crates/bounded-static/0.6.0) # Bounded Static -This crate defines the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.ToBoundedStatic.html) -and [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.IntoBoundedStatic.html) traits, -the [`ToStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/derive.ToStatic.html) macro and provides impls +This crate defines the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.ToBoundedStatic.html) +and [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.IntoBoundedStatic.html) traits, +the [`ToStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/derive.ToStatic.html) macro and provides impls for common types. This crate has zero-dependencies, is `no_std` friendly and forbids `unsafe` code. @@ -21,7 +21,7 @@ method to convert to that bounded type. The macros `ToStatic` can be used to automatically derive `ToBoundedStatic` and `IntoBoundedStatic` for any `struct` or `enum` that can be converted to a form that is bounded by `'static`. -Refer to the crate [`documentation`](https://docs.rs/bounded-static/0.5.0/bounded_static) for details and examples. +Refer to the crate [`documentation`](https://docs.rs/bounded-static/0.6.0/bounded_static) for details and examples. ## FAQ diff --git a/bounded-static-derive/Cargo.toml b/bounded-static-derive/Cargo.toml index 51d0a26..fe290e7 100644 --- a/bounded-static-derive/Cargo.toml +++ b/bounded-static-derive/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bounded-static-derive" -version = "0.5.0" +version = "0.6.0" rust-version = "1.60.0" edition = "2021" authors = ["FujiApple "] @@ -20,4 +20,4 @@ quote = "1.0.15" proc-macro2 = "1.0.36" [dev-dependencies] -bounded-static = { version = "0.5.0", path = "../bounded-static", features = [ "derive" ] } \ No newline at end of file +bounded-static = { version = "0.6.0", path = "../bounded-static", features = [ "derive" ] } \ No newline at end of file diff --git a/bounded-static-derive/README.md b/bounded-static-derive/README.md index 7675b96..5cd340f 100644 --- a/bounded-static-derive/README.md +++ b/bounded-static-derive/README.md @@ -1,18 +1,18 @@ -[![Documentation](https://docs.rs/bounded-static-derive/badge.svg)](https://docs.rs/bounded-static-derive/0.5.0) -[![Crate](https://img.shields.io/crates/v/bounded-static-derive.svg)](https://crates.io/crates/bounded-static-derive/0.5.0) +[![Documentation](https://docs.rs/bounded-static-derive/badge.svg)](https://docs.rs/bounded-static-derive/0.6.0) +[![Crate](https://img.shields.io/crates/v/bounded-static-derive.svg)](https://crates.io/crates/bounded-static-derive/0.6.0) # Bounded Static Derive This crate provides the `ToStatic` macro which can be used to derive implementations of -the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.ToBoundedStatic.html) and -[`IntoBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.IntoBoundedStatic.html) traits for all `struct`and `enum` +the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.ToBoundedStatic.html) and +[`IntoBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.IntoBoundedStatic.html) traits for all `struct`and `enum` that can be converted to a form that is bounded by `'static`. -The `ToStatic` macro should be used via the [`bounded-static`](https://docs.rs/bounded-static/0.5.0/bounded_static) crate rather +The `ToStatic` macro should be used via the [`bounded-static`](https://docs.rs/bounded-static/0.6.0/bounded_static) crate rather than using this crate directly. ```yaml -bounded-static = { version = "0.5.0", features = [ "derive" ] } +bounded-static = { version = "0.6.0", features = [ "derive" ] } ``` ## License diff --git a/bounded-static-derive/src/lib.rs b/bounded-static-derive/src/lib.rs index 56f74df..9bb1a16 100644 --- a/bounded-static-derive/src/lib.rs +++ b/bounded-static-derive/src/lib.rs @@ -1,11 +1,11 @@ -#![doc(html_root_url = "https://docs.rs/bounded-static-derive/0.5.0")] +#![doc(html_root_url = "https://docs.rs/bounded-static-derive/0.6.0")] //! Provides the `ToStatic` derive macro. //! -//! The [`ToStatic`] derive macro implements the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.ToBoundedStatic.html) -//! and [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.IntoBoundedStatic.html) traits for any `struct` +//! The [`ToStatic`] derive macro implements the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.ToBoundedStatic.html) +//! and [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.IntoBoundedStatic.html) traits for any `struct` //! and `enum` that can be converted to a form that is bounded by `'static`. //! -//! The [`ToStatic`] macro should be used via the [`bounded-static`](https://docs.rs/bounded-static/0.5.0) crate +//! The [`ToStatic`] macro should be used via the [`bounded-static`](https://docs.rs/bounded-static/0.6.0) crate //! rather than using this crate directly. #![warn(clippy::all, clippy::pedantic, clippy::nursery, rust_2018_idioms)] #![allow(clippy::redundant_pub_crate)] @@ -20,8 +20,8 @@ mod data_struct; /// The `ToStatic` derive macro. /// -/// Generate [`ToBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.ToBoundedStatic.html) and -/// [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.5.0/bounded_static/trait.IntoBoundedStatic.html) impls for the data item deriving +/// Generate [`ToBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.ToBoundedStatic.html) and +/// [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.6.0/bounded_static/trait.IntoBoundedStatic.html) impls for the data item deriving /// `ToStatic`. #[proc_macro_derive(ToStatic)] pub fn to_static(input: proc_macro::TokenStream) -> proc_macro::TokenStream { diff --git a/bounded-static/Cargo.toml b/bounded-static/Cargo.toml index ae340bd..17df1a3 100644 --- a/bounded-static/Cargo.toml +++ b/bounded-static/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bounded-static" -version = "0.5.0" +version = "0.6.0" rust-version = "1.60.0" edition = "2021" authors = ["FujiApple "] @@ -27,7 +27,7 @@ std = [ "alloc", "ahash?/std" ] derive = [ "bounded-static-derive" ] [dependencies] -bounded-static-derive = { version = "0.5.0", path = "../bounded-static-derive", optional = true } +bounded-static-derive = { version = "0.6.0", path = "../bounded-static-derive", optional = true } smol_str = { version = "0.2.0", optional = true, default_features = false } smallvec = { version = "1.8.0", optional = true, default_features = false } smartstring = { version = "1.0.0", optional = true, default_features = false } diff --git a/bounded-static/src/lib.rs b/bounded-static/src/lib.rs index ecfeaca..3e000a4 100644 --- a/bounded-static/src/lib.rs +++ b/bounded-static/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/bounded-static/0.5.0")] +#![doc(html_root_url = "https://docs.rs/bounded-static/0.6.0")] //! Provides the [`ToBoundedStatic`] and [`IntoBoundedStatic`] traits and [`ToStatic`] derive macro. //! //! As described in the [Common Rust Lifetime Misconceptions](https://github.com/pretzelhammer/rust-blog/blob/master/posts/common-rust-lifetime-misconceptions.md#2-if-t-static-then-t-must-be-valid-for-the-entire-program): @@ -118,7 +118,7 @@ //! To use the [`ToStatic`] macro you must enable the `derive` feature: //! //! ```yaml -//! bounded-static = { version = "0.5.0", features = [ "derive" ] } +//! bounded-static = { version = "0.6.0", features = [ "derive" ] } //! ``` //! //! # Examples