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

scoped_thread_local

Highly flexible Scoped thread local with HKT builtin

10 releases (1 stable)

1.0.0 Jul 21, 2024
0.6.2 Jul 21, 2024
0.5.1 Jul 12, 2024
0.4.0 Jun 28, 2024
0.1.6 May 26, 2024

#608 in Rust patterns

Download history 525/week @ 2024-07-22 167/week @ 2024-07-29 47/week @ 2024-08-05 92/week @ 2024-08-12 119/week @ 2024-08-19 197/week @ 2024-08-26 249/week @ 2024-09-02 44/week @ 2024-09-16 8/week @ 2024-09-23 94/week @ 2024-09-30 257/week @ 2024-10-07 109/week @ 2024-10-14 97/week @ 2024-10-21 144/week @ 2024-11-04

351 downloads per month

MIT/Apache

9KB
170 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