better_scoped_tls

Crates.iobetter_scoped_tls
lib.rsbetter_scoped_tls
version1.0.1
created_at2022-02-17 08:21:15.751912+00
updated_at2025-06-14 17:19:12.281282+00
descriptionscoped-tls, but with good error message
homepage
repositoryhttps://github.com/swc-project/swc.git
max_upload_size
id533955
size5,048
SWC Bot (swc-bot)

documentation

https://rustdoc.swc.rs/better_scoped_tls/

README

better_scoped_tls

This crate provides an opinionated version of scoped-tls.

Scoped thread local variables created by this crate will panic with a good message on usage without .set, like

You should perform this operation in the closure passed to `set` of better_scoped_tls::tests::TESTTLS

Syntax is exactly same to the original scoped-tls.

Commit count: 10767

cargo fmt