-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
213a5ca
commit 4f6d0c9
Showing
6 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "static-keys" | ||
version = "0.5.0" | ||
version = "0.6.0" | ||
edition = "2021" | ||
authors = ["Evian-Zhang <[email protected]>"] | ||
license = "MIT OR Apache-2.0" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters