Crates.io | better_scoped_tls |
lib.rs | better_scoped_tls |
version | |
source | src |
created_at | 2022-02-17 08:21:15.751912 |
updated_at | 2024-10-12 07:31:46.993251 |
description | scoped-tls, but with good error message |
homepage | |
repository | https://github.com/swc-project/swc.git |
max_upload_size | |
id | 533955 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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.