-
Notifications
You must be signed in to change notification settings - Fork 9
/
Cargo.toml
137 lines (114 loc) · 3.74 KB
/
Cargo.toml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[package]
name = "pyo3-async-runtimes"
description = "PyO3 bridges from Rust runtimes to Python's Asyncio library"
version = "0.23.0"
authors = [
"Andrew J Westlake <[email protected]>",
"David Hewitt <[email protected]>",
]
readme = "README.md"
keywords = ["pyo3", "python", "ffi", "async", "asyncio"]
homepage = "https://github.com/PyO3/pyo3-async-runtimes"
repository = "https://github.com/PyO3/pyo3-async-runtimes"
documentation = "https://docs.rs/crate/pyo3-async-runtimes/"
categories = ["api-bindings", "development-tools::ffi"]
license = "Apache-2.0"
exclude = ["/.gitignore", "/codecov.yml", "/Makefile"]
edition = "2021"
rust-version = "1.63"
[workspace]
members = ["pyo3-async-runtimes-macros"]
[features]
async-std-runtime = ["async-std"]
attributes = ["pyo3-async-runtimes-macros"]
testing = ["clap", "inventory"]
tokio-runtime = ["tokio"]
unstable-streams = ["async-channel"]
default = []
[package.metadata.docs.rs]
features = ["attributes", "testing", "async-std-runtime", "tokio-runtime"]
[[example]]
name = "async_std"
path = "examples/async_std.rs"
required-features = ["attributes", "async-std-runtime"]
[[example]]
name = "tokio"
path = "examples/tokio.rs"
required-features = ["attributes", "tokio-runtime"]
[[example]]
name = "tokio_current_thread"
path = "examples/tokio_current_thread.rs"
required-features = ["attributes", "tokio-runtime"]
[[example]]
name = "tokio_multi_thread"
path = "examples/tokio_multi_thread.rs"
required-features = ["attributes", "tokio-runtime"]
[[test]]
name = "test_async_std_asyncio"
path = "pytests/test_async_std_asyncio.rs"
harness = false
required-features = ["async-std-runtime", "testing", "attributes"]
[[test]]
name = "test_async_std_run_forever"
path = "pytests/test_async_std_run_forever.rs"
harness = false
required-features = ["async-std-runtime", "testing"]
[[test]]
name = "test_tokio_current_thread_asyncio"
path = "pytests/test_tokio_current_thread_asyncio.rs"
harness = false
required-features = ["tokio-runtime", "testing", "attributes"]
[[test]]
name = "test_tokio_current_thread_run_forever"
path = "pytests/test_tokio_current_thread_run_forever.rs"
harness = false
required-features = ["tokio-runtime", "testing"]
[[test]]
name = "test_tokio_multi_thread_asyncio"
path = "pytests/test_tokio_multi_thread_asyncio.rs"
harness = false
required-features = ["tokio-runtime", "testing", "attributes"]
[[test]]
name = "test_tokio_multi_thread_run_forever"
path = "pytests/test_tokio_multi_thread_run_forever.rs"
harness = false
required-features = ["tokio-runtime", "testing"]
[[test]]
name = "test_async_std_uvloop"
path = "pytests/test_async_std_uvloop.rs"
harness = false
required-features = ["async-std-runtime", "testing"]
[[test]]
name = "test_tokio_current_thread_uvloop"
path = "pytests/test_tokio_current_thread_uvloop.rs"
harness = false
required-features = ["tokio-runtime", "testing"]
[[test]]
name = "test_tokio_multi_thread_uvloop"
path = "pytests/test_tokio_multi_thread_uvloop.rs"
harness = false
required-features = ["tokio-runtime", "testing"]
[[test]]
name = "test_race_condition_regression"
path = "pytests/test_race_condition_regression.rs"
harness = false
required-features = ["async-std-runtime", "testing"]
[dependencies]
async-channel = { version = "2.3", optional = true }
clap = { version = "4.5", optional = true }
futures = "0.3"
inventory = { version = "0.3", optional = true }
once_cell = "1.14"
pin-project-lite = "0.2"
pyo3 = "0.23"
pyo3-async-runtimes-macros = { path = "pyo3-async-runtimes-macros", version = "=0.23.0", optional = true }
[dev-dependencies]
pyo3 = { version = "0.23", features = ["macros"] }
[dependencies.async-std]
version = "1.12"
features = ["unstable"]
optional = true
[dependencies.tokio]
version = "1.13"
features = ["rt", "rt-multi-thread", "time"]
optional = true