Releases
0.3.5
yvt
released this
04 Sep 15:05
Added
New token types
IcToken
(counter-based tokens)
BrandedToken
and with_branded_token
(a GhostCell implementation)
(Unstable) with_branded_token_async
Trait implementations
impl Display for {BadTokenError, SingletonTokenExhaustedError}
when cfg(not(feature = "std"))
TokenLock
operations
TokenLock::wrap
, a constructor that default-initializes Keyhole: TokenId
, provided for convenience
*TokenLock::{set, try_set}
, which assign a new value and discard the old one
TokenLock
variants
Miscellaneous
SingletonTokenLock<T, Tag>
(an alias of TokenLock<T, SingletonTokenId<Tag>>
) and its variants
Changed
Raise the minimum supported Rust version to 1.54.0 (MSRV changes are not considered semver-breaking anymore.)
RcToken
and ArcToken
now only require cfg(feature = "alloc")
impl_singleton_token_factory!
can now be applied to multiple types in a single macro call
You can’t perform that action at this time.