MCPcopy Index your code
hub / github.com/SergioBenitez/state

github.com/SergioBenitez/state @1.1.7

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.1.7 ↗ · + Follow
64 symbols 111 edges 5 files 15 documented · 23% 168 cross-repo links updated 3y ago★ 2221 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

thread_local

Build Status Crates.io

This library provides the ThreadLocal type which allow a separate copy of an object to be used for each thread. This allows for per-object thread-local storage, unlike the standard library's thread_local! macro which only allows static thread-local storage.

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
thread_local = "1.1"

Minimum Rust version

This crate's minimum supported Rust version (MSRV) is 1.59.0.

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Extension points exported contracts — how you extend this code

UncheckedOptionExt (Interface)
An extension trait for `Option ` providing unchecked unwrapping methods. [1 implementers]
src/unreachable.rs
UncheckedResultExt (Interface)
An extension trait for `Result ` providing unchecked unwrapping methods. [1 implementers]
src/unreachable.rs

Core symbols most depended-on inside this repo

get
called by 7
src/lib.rs
get_or
called by 7
src/lib.rs
iter_mut
called by 4
src/lib.rs
iter
called by 3
src/lib.rs
get_inner
called by 2
src/lib.rs
next_mut
called by 2
src/lib.rs
next_bucket
called by 2
src/lib.rs
size_hint_frozen
called by 2
src/lib.rs

Shape

Method 39
Class 12
Function 11
Interface 2

Languages

Rust100%

Modules by API surface

src/lib.rs36 symbols
src/cached.rs15 symbols
src/unreachable.rs6 symbols
src/thread_id.rs6 symbols
benches/thread_local.rs1 symbols

For agents

$ claude mcp add state \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page