Skip to content

Commit

Permalink
chore: update version to 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiapple852 committed Oct 25, 2023
1 parent 23f5c08 commit 9794f80
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.6.0)
[![Crate](https://img.shields.io/crates/v/bounded-static.svg)](https://crates.io/crates/bounded-static/0.6.0)
[![Documentation](https://docs.rs/bounded-static/badge.svg)](https://docs.rs/bounded-static/0.7.0)
[![Crate](https://img.shields.io/crates/v/bounded-static.svg)](https://crates.io/crates/bounded-static/0.7.0)

# Bounded Static
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
This crate defines the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.7.0/bounded_static/trait.ToBoundedStatic.html)
and [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.7.0/bounded_static/trait.IntoBoundedStatic.html) traits,
the [`ToStatic`](https://docs.rs/bounded-static/0.7.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.

Expand All @@ -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.6.0/bounded_static) for details and examples.
Refer to the crate [`documentation`](https://docs.rs/bounded-static/0.7.0/bounded_static) for details and examples.

## FAQ

Expand Down
4 changes: 2 additions & 2 deletions bounded-static-derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bounded-static-derive"
version = "0.6.0"
version = "0.7.0"
rust-version = "1.61.0"
edition = "2021"
authors = ["FujiApple <fujiapple852@gmail.com>"]
Expand All @@ -20,4 +20,4 @@ quote = "1.0.33"
proc-macro2 = "1.0.69"

[dev-dependencies]
bounded-static = { version = "0.6.0", path = "../bounded-static", features = [ "derive" ] }
bounded-static = { version = "0.7.0", path = "../bounded-static", features = [ "derive" ] }
12 changes: 6 additions & 6 deletions bounded-static-derive/README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
[![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)
[![Documentation](https://docs.rs/bounded-static-derive/badge.svg)](https://docs.rs/bounded-static-derive/0.7.0)
[![Crate](https://img.shields.io/crates/v/bounded-static-derive.svg)](https://crates.io/crates/bounded-static-derive/0.7.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.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`
the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.7.0/bounded_static/trait.ToBoundedStatic.html) and
[`IntoBoundedStatic`](https://docs.rs/bounded-static/0.7.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.6.0/bounded_static) crate rather
The `ToStatic` macro should be used via the [`bounded-static`](https://docs.rs/bounded-static/0.7.0/bounded_static) crate rather
than using this crate directly.

```yaml
bounded-static = { version = "0.6.0", features = [ "derive" ] }
bounded-static = { version = "0.7.0", features = [ "derive" ] }
```

## License
Expand Down
12 changes: 6 additions & 6 deletions bounded-static-derive/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#![doc(html_root_url = "https://docs.rs/bounded-static-derive/0.6.0")]
#![doc(html_root_url = "https://docs.rs/bounded-static-derive/0.7.0")]
//! Provides the `ToStatic` derive macro.
//!
//! 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`
//! The [`ToStatic`] derive macro implements the [`ToBoundedStatic`](https://docs.rs/bounded-static/0.7.0/bounded_static/trait.ToBoundedStatic.html)
//! and [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.7.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.6.0) crate
//! The [`ToStatic`] macro should be used via the [`bounded-static`](https://docs.rs/bounded-static/0.7.0) crate
//! rather than using this crate directly.
#![warn(clippy::all, clippy::pedantic, clippy::nursery, rust_2018_idioms)]
#![allow(clippy::redundant_pub_crate)]
Expand All @@ -20,8 +20,8 @@ mod data_struct;

/// The `ToStatic` derive macro.
///
/// 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
/// Generate [`ToBoundedStatic`](https://docs.rs/bounded-static/0.7.0/bounded_static/trait.ToBoundedStatic.html) and
/// [`IntoBoundedStatic`](https://docs.rs/bounded-static/0.7.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 {
Expand Down
4 changes: 2 additions & 2 deletions bounded-static/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bounded-static"
version = "0.6.0"
version = "0.7.0"
rust-version = "1.61.0"
edition = "2021"
authors = ["FujiApple <fujiapple852@gmail.com>"]
Expand All @@ -27,7 +27,7 @@ std = [ "alloc", "ahash?/std" ]
derive = [ "bounded-static-derive" ]

[dependencies]
bounded-static-derive = { version = "0.6.0", path = "../bounded-static-derive", optional = true }
bounded-static-derive = { version = "0.7.0", path = "../bounded-static-derive", optional = true }
smol_str = { version = "0.2.0", optional = true, default_features = false }
smallvec = { version = "1.11.1", optional = true, default_features = false }
smartstring = { version = "1.0.1", optional = true, default_features = false }
Expand Down
4 changes: 2 additions & 2 deletions bounded-static/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc(html_root_url = "https://docs.rs/bounded-static/0.6.0")]
#![doc(html_root_url = "https://docs.rs/bounded-static/0.7.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):
Expand Down Expand Up @@ -118,7 +118,7 @@
//! To use the [`ToStatic`] macro you must enable the `derive` feature:
//!
//! ```yaml
//! bounded-static = { version = "0.6.0", features = [ "derive" ] }
//! bounded-static = { version = "0.7.0", features = [ "derive" ] }
//! ```
//!
//! # Examples
Expand Down

0 comments on commit 9794f80

Please sign in to comment.