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

scoped_thread_local

Highly flexible Scoped thread local with HKT builtin

7 releases

0.3.0 May 29, 2024
0.2.0 May 27, 2024
0.1.6 May 26, 2024

#562 in Rust patterns

Download history 445/week @ 2024-05-20 400/week @ 2024-05-27

845 downloads per month

MIT/Apache

8KB
156 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