#thread-local #hkt #macro #scoped-tls

scoped_thread_local

Highly flexible Scoped thread local with HKT builtin

8 releases

new 0.4.0 Jun 28, 2024
0.3.0 May 29, 2024
0.2.0 May 27, 2024
0.1.6 May 26, 2024

#622 in Rust patterns

Download history 128/week @ 2024-05-18 674/week @ 2024-05-25 55/week @ 2024-06-01 4/week @ 2024-06-08 2/week @ 2024-06-15

863 downloads per month

MIT/Apache

8KB
160 lines

scoped-thread-local

Documentation

Flexible version of thread local

Features

  • Lifetime elision in declaration (every elided lifetime becomes a distinct one)
  • Full HKT Supports

License

MIT OR Apache-2.0


lib.rs:

Example

See example module for expanded code

No runtime deps