-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (66 loc) · 2.16 KB
/
Cargo.toml
File metadata and controls
72 lines (66 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
[package]
name = "threadid"
description = "Fast and flexible thread identifiers"
version = "0.1.2"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/Techcable/threadid.rs"
edition = "2021"
# 1.56 - edition 2021
# 1.59 - const syntax for thread locals
# 1.61 - dep:foo and foo?/std syntax
# 1.63 - const Mutex::new
rust-version = "1.63"
categories = ["concurrency", "development-tools::debugging", "no-std", "no-std::no-alloc"]
keywords = ["threadid", "tid", "name"]
[dependencies]
cfg-if = "1"
equivalent = "1"
portable-atomic = { version = "1", features = ["require-cas"] }
nonmax = { version = "0.5", default-features = false }
# optional
parking_lot = { version = "0.12", optional = true }
serde = { version = "1", optional = true }
slog = { version = "2.6", optional = true, default-features = false }
bytemuck = { version = "1.23", optional = true }
[dev-dependencies]
crossbeam-utils = "0.8"
[[example]]
name = "thread_name"
required-features = ["std"]
[features]
default = ["std"]
# Enables features which require the standard library
std = ["alloc", "slog?/std"]
# Enables features which require the `alloc` crate
alloc = []
# Enables nightly-only optimizations and features
nightly = ["parking_lot?/nightly"]
# Enables serde serialization for most types
#
# Deserialization can not be reasonably implemented
serde = ["dep:serde", "nonmax/serde"]
# Implements slog::Value for most types
slog = ["dep:slog"]
# Implement bytemuck traits for applicable types
bytemuck = ["dep:bytemuck"]
# Use nightly-specific documentation features
nightly-docs = []
# Use parking_lot for synchronization
#
# Since synchronization is off the fast path,
# this is unlikely to affect performance.
# However, it may be useful if std::sync::Mutex interacts poorly
# with thread destructors
parking_lot = ["dep:parking_lot"]
# Make the `UniqueThreadId` type wrap `std::thread::ThreadId`
#
# This currently requires the `nightly` feature,
# along with the `std` feature.
# By default, this is implicitly enabled on nightly + std,
# this feature only makes the requirement explicit.
unique-wrap-std = ["std"]
[package.metadata.docs.rs]
all-features = true
[workspace]
members = [".", "benchmarks"]
resolver = "2"