Skip to content

0.3.5

Compare
Choose a tag to compare
@yvt 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
    • [Unsync]PinTokenLock
  • 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