Registry / utility / thread-id

thread-id

JSON →
library5.1.0rscratesunverified

Get a unique thread ID for the current thread.

# Cargo.toml [dependencies] thread-id = "5.1.0"
INSTALL
IMPORT
SIG · THREAD-ID
T
thread-id
utilityrustv5.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

get
✓ use thread_id::get;

Gets the unique ID of the current thread.

use thread_id::get; fn main() { let id = get(); println!("Thread ID: {}", id); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
5.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
14
Resources
thread-id — cargo add thread-id · libregistry