All notable changes to similar are documented here.
Fragile
no longer boxes internally.Sticky
and SemiSticky
now require the use of stack tokens. For more information see #26Sticky
now tries to drop entries from the thread local registry eagerly if it's dropped on the right thread.Note on safety: the Sticky
and SemiSticky
types allow data to live longer than the wrapper type which is why they are now requiring a 'static
bound. Previously it was possible to create a sticky containing a bare reference which permitted unsafe access.
Sticky
now requires 'static
.slab
feature for an internal optimization for Sticky
to use a slab instead of a HashMap
.Older releases were yanked due to the insufficient trait bound on Sticky
.