diff --git a/CHANGELOG/v0.6.0.md b/CHANGELOG/v0.6.0.md new file mode 100644 index 0000000..de3b926 --- /dev/null +++ b/CHANGELOG/v0.6.0.md @@ -0,0 +1,5 @@ +# static-keys v0.6.0 + +The `GenericStaticKey::enable` and `GenericStaticKey::disable` now accept shared reference of `self` instead of `&mut self`, and `define_static_key_false!` and `define_static_key_true!` now produce a immutable static variable. The static key has been changed to interior mutable in order to meet the Rust 2024 edition's requirement, which does not allow mutable static. + +Remove feature declaration of `asm_const` since it has been stabilized in Rust 1.82.0. diff --git a/Cargo.lock b/Cargo.lock index d458643..3946c1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -134,7 +134,7 @@ dependencies = [ [[package]] name = "static-keys" -version = "0.5.0" +version = "0.6.0" dependencies = [ "clear-cache", "libc", diff --git a/Cargo.toml b/Cargo.toml index 875456b..7312f93 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "static-keys" -version = "0.5.0" +version = "0.6.0" edition = "2021" authors = ["Evian-Zhang "] license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index 3d28cd8..01bf0e6 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ First, add this crate to your `Cargo.toml`: ```toml [dependencies] -static-keys = "0.5" +static-keys = "0.6" ``` At the beginning of `main` function, you should invoke [`static_keys::global_init`](https://docs.rs/static-keys/latest/static_keys/fn.global_init.html) to initialize. diff --git a/docs/en/src/README.md b/docs/en/src/README.md index a026bee..8eb2788 100644 --- a/docs/en/src/README.md +++ b/docs/en/src/README.md @@ -97,7 +97,7 @@ First, add this crate to your `Cargo.toml`: ```toml [dependencies] -static-keys = "0.5" +static-keys = "0.6" ``` At the beginning of `main` function, you should invoke [`static_keys::global_init`](https://docs.rs/static-keys/latest/static_keys/fn.global_init.html) to initialize. diff --git a/docs/zh-Hans/src/README.md b/docs/zh-Hans/src/README.md index d29404b..bd7245d 100644 --- a/docs/zh-Hans/src/README.md +++ b/docs/zh-Hans/src/README.md @@ -97,7 +97,7 @@ do_something: ```toml [dependencies] -static-keys = "0.5" +static-keys = "0.6" ``` 在`main`函数开头,需要调用[`static_keys::global_init`](https://docs.rs/static-keys/latest/static_keys/fn.global_init.html)进行初始化。