-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
55 lines (44 loc) · 1.17 KB
/
Cargo.toml
File metadata and controls
55 lines (44 loc) · 1.17 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
[package]
authors = ["Thomas Sieverding <Thomas@bajix.com>"]
edition = "2024"
name = "async-local"
version = "6.0.2"
description = "For using thread locals within an async context across await points"
readme = "./README.md"
license = "MIT"
repository = "https://github.com/Bajix/async-local/"
rust-version = "1.85"
[dependencies]
ctor = { version = "0.4.1", default-features = false, features = [
"proc_macro",
] }
derive-async-local = { version = "6.0.2", path = "./derive-async-local" }
generativity = "1.1"
linkme = "0.3.32"
num_cpus = "1.16"
tokio = { version = "1", features = ["rt", "rt-multi-thread"], optional = true }
[dev-dependencies]
tokio = { version = "1", features = ["macros"] }
[target.'cfg(loom)'.dependencies]
loom = { version = "0.7", features = [] }
[lib]
doctest = false
bench = false
[features]
default = ["rt"]
rt = ["tokio/rt"]
# Enable Tokio multi_thread runtime flavor
rt-multi-thread = [
"rt",
"tokio/rt-multi-thread",
"derive-async-local/rt-multi-thread",
]
compat = []
[workspace]
members = ["derive-async-local"]
[profile.release]
lto = "fat"
opt-level = 3
codegen-units = 1
[package.metadata.docs.rs]
rustdoc-args = ["--cfg", "docsrs"]