rloop 0.1.0a1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,427 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 3
4
+
5
+ [[package]]
6
+ name = "anyhow"
7
+ version = "1.0.93"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "4c95c10ba0b00a02636238b814946408b1322d5ac4760326e6fb8ec956d85775"
10
+
11
+ [[package]]
12
+ name = "autocfg"
13
+ version = "1.4.0"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
16
+
17
+ [[package]]
18
+ name = "bitflags"
19
+ version = "2.6.0"
20
+ source = "registry+https://github.com/rust-lang/crates.io-index"
21
+ checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
22
+
23
+ [[package]]
24
+ name = "cc"
25
+ version = "1.1.37"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "40545c26d092346d8a8dab71ee48e7685a7a9cba76e634790c215b41a4a7b4cf"
28
+ dependencies = [
29
+ "shlex",
30
+ ]
31
+
32
+ [[package]]
33
+ name = "cfg-if"
34
+ version = "1.0.0"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
37
+
38
+ [[package]]
39
+ name = "crossbeam-utils"
40
+ version = "0.8.20"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"
43
+
44
+ [[package]]
45
+ name = "dashmap"
46
+ version = "6.1.0"
47
+ source = "registry+https://github.com/rust-lang/crates.io-index"
48
+ checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf"
49
+ dependencies = [
50
+ "cfg-if",
51
+ "crossbeam-utils",
52
+ "hashbrown",
53
+ "lock_api",
54
+ "once_cell",
55
+ "parking_lot_core",
56
+ ]
57
+
58
+ [[package]]
59
+ name = "hashbrown"
60
+ version = "0.14.5"
61
+ source = "registry+https://github.com/rust-lang/crates.io-index"
62
+ checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
63
+
64
+ [[package]]
65
+ name = "heck"
66
+ version = "0.5.0"
67
+ source = "registry+https://github.com/rust-lang/crates.io-index"
68
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
69
+
70
+ [[package]]
71
+ name = "hermit-abi"
72
+ version = "0.3.9"
73
+ source = "registry+https://github.com/rust-lang/crates.io-index"
74
+ checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
75
+
76
+ [[package]]
77
+ name = "indoc"
78
+ version = "2.0.5"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
81
+
82
+ [[package]]
83
+ name = "libc"
84
+ version = "0.2.162"
85
+ source = "registry+https://github.com/rust-lang/crates.io-index"
86
+ checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
87
+
88
+ [[package]]
89
+ name = "libmimalloc-sys"
90
+ version = "0.1.39"
91
+ source = "registry+https://github.com/rust-lang/crates.io-index"
92
+ checksum = "23aa6811d3bd4deb8a84dde645f943476d13b248d818edcf8ce0b2f37f036b44"
93
+ dependencies = [
94
+ "cc",
95
+ "libc",
96
+ ]
97
+
98
+ [[package]]
99
+ name = "lock_api"
100
+ version = "0.4.12"
101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
102
+ checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17"
103
+ dependencies = [
104
+ "autocfg",
105
+ "scopeguard",
106
+ ]
107
+
108
+ [[package]]
109
+ name = "log"
110
+ version = "0.4.22"
111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
112
+ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
113
+
114
+ [[package]]
115
+ name = "memoffset"
116
+ version = "0.9.1"
117
+ source = "registry+https://github.com/rust-lang/crates.io-index"
118
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
119
+ dependencies = [
120
+ "autocfg",
121
+ ]
122
+
123
+ [[package]]
124
+ name = "mimalloc"
125
+ version = "0.1.43"
126
+ source = "registry+https://github.com/rust-lang/crates.io-index"
127
+ checksum = "68914350ae34959d83f732418d51e2427a794055d0b9529f48259ac07af65633"
128
+ dependencies = [
129
+ "libmimalloc-sys",
130
+ ]
131
+
132
+ [[package]]
133
+ name = "mio"
134
+ version = "1.0.2"
135
+ source = "registry+https://github.com/rust-lang/crates.io-index"
136
+ checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
137
+ dependencies = [
138
+ "hermit-abi",
139
+ "libc",
140
+ "log",
141
+ "wasi",
142
+ "windows-sys",
143
+ ]
144
+
145
+ [[package]]
146
+ name = "once_cell"
147
+ version = "1.20.2"
148
+ source = "registry+https://github.com/rust-lang/crates.io-index"
149
+ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
150
+
151
+ [[package]]
152
+ name = "parking_lot_core"
153
+ version = "0.9.10"
154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
155
+ checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8"
156
+ dependencies = [
157
+ "cfg-if",
158
+ "libc",
159
+ "redox_syscall",
160
+ "smallvec",
161
+ "windows-targets",
162
+ ]
163
+
164
+ [[package]]
165
+ name = "portable-atomic"
166
+ version = "1.9.0"
167
+ source = "registry+https://github.com/rust-lang/crates.io-index"
168
+ checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
169
+
170
+ [[package]]
171
+ name = "proc-macro2"
172
+ version = "1.0.89"
173
+ source = "registry+https://github.com/rust-lang/crates.io-index"
174
+ checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e"
175
+ dependencies = [
176
+ "unicode-ident",
177
+ ]
178
+
179
+ [[package]]
180
+ name = "pyo3"
181
+ version = "0.22.6"
182
+ source = "registry+https://github.com/rust-lang/crates.io-index"
183
+ checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
184
+ dependencies = [
185
+ "anyhow",
186
+ "cfg-if",
187
+ "indoc",
188
+ "libc",
189
+ "memoffset",
190
+ "once_cell",
191
+ "portable-atomic",
192
+ "pyo3-build-config",
193
+ "pyo3-ffi",
194
+ "pyo3-macros",
195
+ "unindent",
196
+ ]
197
+
198
+ [[package]]
199
+ name = "pyo3-build-config"
200
+ version = "0.22.6"
201
+ source = "registry+https://github.com/rust-lang/crates.io-index"
202
+ checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
203
+ dependencies = [
204
+ "once_cell",
205
+ "python3-dll-a",
206
+ "target-lexicon",
207
+ ]
208
+
209
+ [[package]]
210
+ name = "pyo3-ffi"
211
+ version = "0.22.6"
212
+ source = "registry+https://github.com/rust-lang/crates.io-index"
213
+ checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
214
+ dependencies = [
215
+ "libc",
216
+ "pyo3-build-config",
217
+ ]
218
+
219
+ [[package]]
220
+ name = "pyo3-macros"
221
+ version = "0.22.6"
222
+ source = "registry+https://github.com/rust-lang/crates.io-index"
223
+ checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
224
+ dependencies = [
225
+ "proc-macro2",
226
+ "pyo3-macros-backend",
227
+ "quote",
228
+ "syn",
229
+ ]
230
+
231
+ [[package]]
232
+ name = "pyo3-macros-backend"
233
+ version = "0.22.6"
234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
235
+ checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
236
+ dependencies = [
237
+ "heck",
238
+ "proc-macro2",
239
+ "pyo3-build-config",
240
+ "quote",
241
+ "syn",
242
+ ]
243
+
244
+ [[package]]
245
+ name = "python3-dll-a"
246
+ version = "0.2.10"
247
+ source = "registry+https://github.com/rust-lang/crates.io-index"
248
+ checksum = "bd0b78171a90d808b319acfad166c4790d9e9759bbc14ac8273fe133673dd41b"
249
+ dependencies = [
250
+ "cc",
251
+ ]
252
+
253
+ [[package]]
254
+ name = "quote"
255
+ version = "1.0.37"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
258
+ dependencies = [
259
+ "proc-macro2",
260
+ ]
261
+
262
+ [[package]]
263
+ name = "redox_syscall"
264
+ version = "0.5.7"
265
+ source = "registry+https://github.com/rust-lang/crates.io-index"
266
+ checksum = "9b6dfecf2c74bce2466cabf93f6664d6998a69eb21e39f4207930065b27b771f"
267
+ dependencies = [
268
+ "bitflags",
269
+ ]
270
+
271
+ [[package]]
272
+ name = "rloop"
273
+ version = "0.1.0-alpha1"
274
+ dependencies = [
275
+ "anyhow",
276
+ "dashmap",
277
+ "mimalloc",
278
+ "mio",
279
+ "pyo3",
280
+ "tikv-jemallocator",
281
+ ]
282
+
283
+ [[package]]
284
+ name = "scopeguard"
285
+ version = "1.2.0"
286
+ source = "registry+https://github.com/rust-lang/crates.io-index"
287
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
288
+
289
+ [[package]]
290
+ name = "shlex"
291
+ version = "1.3.0"
292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
293
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
294
+
295
+ [[package]]
296
+ name = "smallvec"
297
+ version = "1.13.2"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
300
+
301
+ [[package]]
302
+ name = "syn"
303
+ version = "2.0.87"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "25aa4ce346d03a6dcd68dd8b4010bcb74e54e62c90c573f394c46eae99aba32d"
306
+ dependencies = [
307
+ "proc-macro2",
308
+ "quote",
309
+ "unicode-ident",
310
+ ]
311
+
312
+ [[package]]
313
+ name = "target-lexicon"
314
+ version = "0.12.16"
315
+ source = "registry+https://github.com/rust-lang/crates.io-index"
316
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
317
+
318
+ [[package]]
319
+ name = "tikv-jemalloc-sys"
320
+ version = "0.6.0+5.3.0-1-ge13ca993e8ccb9ba9847cc330696e02839f328f7"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "cd3c60906412afa9c2b5b5a48ca6a5abe5736aec9eb48ad05037a677e52e4e2d"
323
+ dependencies = [
324
+ "cc",
325
+ "libc",
326
+ ]
327
+
328
+ [[package]]
329
+ name = "tikv-jemallocator"
330
+ version = "0.6.0"
331
+ source = "registry+https://github.com/rust-lang/crates.io-index"
332
+ checksum = "4cec5ff18518d81584f477e9bfdf957f5bb0979b0bac3af4ca30b5b3ae2d2865"
333
+ dependencies = [
334
+ "libc",
335
+ "tikv-jemalloc-sys",
336
+ ]
337
+
338
+ [[package]]
339
+ name = "unicode-ident"
340
+ version = "1.0.13"
341
+ source = "registry+https://github.com/rust-lang/crates.io-index"
342
+ checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
343
+
344
+ [[package]]
345
+ name = "unindent"
346
+ version = "0.2.3"
347
+ source = "registry+https://github.com/rust-lang/crates.io-index"
348
+ checksum = "c7de7d73e1754487cb58364ee906a499937a0dfabd86bcb980fa99ec8c8fa2ce"
349
+
350
+ [[package]]
351
+ name = "wasi"
352
+ version = "0.11.0+wasi-snapshot-preview1"
353
+ source = "registry+https://github.com/rust-lang/crates.io-index"
354
+ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
355
+
356
+ [[package]]
357
+ name = "windows-sys"
358
+ version = "0.52.0"
359
+ source = "registry+https://github.com/rust-lang/crates.io-index"
360
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
361
+ dependencies = [
362
+ "windows-targets",
363
+ ]
364
+
365
+ [[package]]
366
+ name = "windows-targets"
367
+ version = "0.52.6"
368
+ source = "registry+https://github.com/rust-lang/crates.io-index"
369
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
370
+ dependencies = [
371
+ "windows_aarch64_gnullvm",
372
+ "windows_aarch64_msvc",
373
+ "windows_i686_gnu",
374
+ "windows_i686_gnullvm",
375
+ "windows_i686_msvc",
376
+ "windows_x86_64_gnu",
377
+ "windows_x86_64_gnullvm",
378
+ "windows_x86_64_msvc",
379
+ ]
380
+
381
+ [[package]]
382
+ name = "windows_aarch64_gnullvm"
383
+ version = "0.52.6"
384
+ source = "registry+https://github.com/rust-lang/crates.io-index"
385
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
386
+
387
+ [[package]]
388
+ name = "windows_aarch64_msvc"
389
+ version = "0.52.6"
390
+ source = "registry+https://github.com/rust-lang/crates.io-index"
391
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
392
+
393
+ [[package]]
394
+ name = "windows_i686_gnu"
395
+ version = "0.52.6"
396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
397
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
398
+
399
+ [[package]]
400
+ name = "windows_i686_gnullvm"
401
+ version = "0.52.6"
402
+ source = "registry+https://github.com/rust-lang/crates.io-index"
403
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
404
+
405
+ [[package]]
406
+ name = "windows_i686_msvc"
407
+ version = "0.52.6"
408
+ source = "registry+https://github.com/rust-lang/crates.io-index"
409
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
410
+
411
+ [[package]]
412
+ name = "windows_x86_64_gnu"
413
+ version = "0.52.6"
414
+ source = "registry+https://github.com/rust-lang/crates.io-index"
415
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
416
+
417
+ [[package]]
418
+ name = "windows_x86_64_gnullvm"
419
+ version = "0.52.6"
420
+ source = "registry+https://github.com/rust-lang/crates.io-index"
421
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
422
+
423
+ [[package]]
424
+ name = "windows_x86_64_msvc"
425
+ version = "0.52.6"
426
+ source = "registry+https://github.com/rust-lang/crates.io-index"
427
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
@@ -0,0 +1,51 @@
1
+ [package]
2
+ name = "rloop"
3
+ version = "0.1.0-alpha1"
4
+ description = "An asyncio event loop implemented in Rust"
5
+ authors = ["Giovanni Barillari <g@baro.dev>"]
6
+ license = "BSD-3-Clause"
7
+ edition = "2021"
8
+
9
+ keywords = ["asyncio"]
10
+
11
+ readme = "README.md"
12
+ homepage = "https://github.com/gi0baro/rloop"
13
+ repository = "https://github.com/gi0baro/rloop"
14
+
15
+ include = [
16
+ "/Cargo.toml",
17
+ "/pyproject.toml",
18
+ "/LICENSE",
19
+ "/README.md",
20
+ "/src",
21
+ "/rloop",
22
+ "/tests",
23
+ "!__pycache__",
24
+ "!tests/.pytest_cache",
25
+ "!*.so",
26
+ ]
27
+
28
+ [lib]
29
+ name = "_rloop"
30
+ crate-type = ["cdylib"]
31
+
32
+ [dependencies]
33
+ anyhow = "=1.0"
34
+ dashmap = { version = "=6.1", features = ["inline"] }
35
+ mio = { version = "=1.0", features = ["net", "os-ext", "os-poll"] }
36
+ pyo3 = { version = "=0.22", features = ["anyhow", "extension-module", "generate-import-lib"] }
37
+
38
+ [target.'cfg(any(target_os = "freebsd", target_os = "windows"))'.dependencies]
39
+ mimalloc = { version = "0.1.43", default-features = false, features = ["local_dynamic_tls"] }
40
+
41
+ [target.'cfg(not(any(target_os = "freebsd", target_os = "windows")))'.dependencies]
42
+ tikv-jemallocator = { version = "0.6.0", default-features = false, features = ["disable_initial_exec_tls"] }
43
+
44
+ [profile.release]
45
+ codegen-units = 1
46
+ debug = false
47
+ incremental = false
48
+ lto = "fat"
49
+ opt-level = 3
50
+ panic = "abort"
51
+ strip = true
rloop-0.1.0a1/LICENSE ADDED
@@ -0,0 +1,28 @@
1
+ Copyright 2024 Giovanni Barillari
2
+
3
+ Redistribution and use in source and binary forms, with or without
4
+ modification, are permitted provided that the following conditions are
5
+ met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+
10
+ 2. Redistributions in binary form must reproduce the above copyright
11
+ notice, this list of conditions and the following disclaimer in the
12
+ documentation and/or other materials provided with the distribution.
13
+
14
+ 3. Neither the name of the copyright holder nor the names of its
15
+ contributors may be used to endorse or promote products derived from
16
+ this software without specific prior written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
21
+ PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22
+ HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
24
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rloop-0.1.0a1/PKG-INFO ADDED
@@ -0,0 +1,66 @@
1
+ Metadata-Version: 2.3
2
+ Name: rloop
3
+ Version: 0.1.0a1
4
+ Classifier: Development Status :: 3 - Alpha
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: BSD License
7
+ Classifier: Operating System :: MacOS
8
+ Classifier: Operating System :: POSIX :: Linux
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3.9
11
+ Classifier: Programming Language :: Python :: 3.10
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: Implementation :: CPython
16
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
17
+ Classifier: Programming Language :: Python
18
+ Classifier: Programming Language :: Rust
19
+ Requires-Dist: ruff ~=0.5.0 ; extra == 'lint'
20
+ Requires-Dist: pytest ~=7.4.2 ; extra == 'test'
21
+ Requires-Dist: pytest-asyncio ~=0.21.1 ; extra == 'test'
22
+ Requires-Dist: rloop[lint,test] ; extra == 'dev'
23
+ Provides-Extra: lint
24
+ Provides-Extra: test
25
+ Provides-Extra: dev
26
+ License-File: LICENSE
27
+ Summary: An asyncio event loop implemented in Rust
28
+ Keywords: asyncio
29
+ Home-Page: https://github.com/gi0baro/rloop
30
+ Author: Giovanni Barillari <g@baro.dev>
31
+ Author-email: Giovanni Barillari <g@baro.dev>
32
+ License: BSD-3-Clause
33
+ Requires-Python: >=3.9
34
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
35
+ Project-URL: Homepage, https://github.com/gi0baro/rloop
36
+ Project-URL: Funding, https://github.com/sponsors/gi0baro
37
+ Project-URL: Source, https://github.com/gi0baro/rloop
38
+
39
+ # RLoop
40
+
41
+ RLoop is an [AsyncIO](https://docs.python.org/3/library/asyncio.html) event loop implemented in Rust on top of the [mio crate](https://github.com/tokio-rs/mio).
42
+
43
+ > [!WARNING]
44
+ > Disclaimer: This is a work in progress and definitely not ready for production usage.
45
+
46
+ ## Installation
47
+
48
+ ```bash
49
+ pip install rloop
50
+ ```
51
+
52
+ ## Usage
53
+
54
+ ```python
55
+ import asyncio
56
+ import rloop
57
+
58
+ asyncio.set_event_loop_policy(rloop.EventLoopPolicy())
59
+ loop = asyncio.new_event_loop()
60
+ asyncio.set_event_loop(loop)
61
+ ```
62
+
63
+ ## License
64
+
65
+ RLoop is released under the BSD License.
66
+
@@ -0,0 +1,27 @@
1
+ # RLoop
2
+
3
+ RLoop is an [AsyncIO](https://docs.python.org/3/library/asyncio.html) event loop implemented in Rust on top of the [mio crate](https://github.com/tokio-rs/mio).
4
+
5
+ > [!WARNING]
6
+ > Disclaimer: This is a work in progress and definitely not ready for production usage.
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ pip install rloop
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```python
17
+ import asyncio
18
+ import rloop
19
+
20
+ asyncio.set_event_loop_policy(rloop.EventLoopPolicy())
21
+ loop = asyncio.new_event_loop()
22
+ asyncio.set_event_loop(loop)
23
+ ```
24
+
25
+ ## License
26
+
27
+ RLoop is released under the BSD License.
@@ -0,0 +1,97 @@
1
+ [project]
2
+ name = 'rloop'
3
+ authors = [
4
+ { name = 'Giovanni Barillari', email = 'g@baro.dev' }
5
+ ]
6
+ classifiers = [
7
+ 'Development Status :: 3 - Alpha',
8
+ 'Intended Audience :: Developers',
9
+ 'License :: OSI Approved :: BSD License',
10
+ 'Operating System :: MacOS',
11
+ 'Operating System :: POSIX :: Linux',
12
+ 'Programming Language :: Python :: 3',
13
+ 'Programming Language :: Python :: 3.9',
14
+ 'Programming Language :: Python :: 3.10',
15
+ 'Programming Language :: Python :: 3.11',
16
+ 'Programming Language :: Python :: 3.12',
17
+ 'Programming Language :: Python :: 3.13',
18
+ 'Programming Language :: Python :: Implementation :: CPython',
19
+ 'Programming Language :: Python :: Implementation :: PyPy',
20
+ 'Programming Language :: Python',
21
+ 'Programming Language :: Rust',
22
+ ]
23
+
24
+ dynamic = [
25
+ 'description',
26
+ 'keywords',
27
+ 'license',
28
+ 'readme',
29
+ 'version',
30
+ ]
31
+
32
+ requires-python = '>=3.9'
33
+ dependencies = []
34
+
35
+ [project.optional-dependencies]
36
+ lint = [
37
+ 'ruff~=0.5.0',
38
+ ]
39
+ test = [
40
+ 'pytest~=7.4.2',
41
+ 'pytest-asyncio~=0.21.1',
42
+ ]
43
+ dev = ['rloop[lint,test]']
44
+
45
+ [project.urls]
46
+ Homepage = 'https://github.com/gi0baro/rloop'
47
+ Funding = 'https://github.com/sponsors/gi0baro'
48
+ Source = 'https://github.com/gi0baro/rloop'
49
+
50
+ [build-system]
51
+ requires = ['maturin>=1.1.0,<2']
52
+ build-backend = 'maturin'
53
+
54
+ [tool.maturin]
55
+ module-name = 'rloop._rloop'
56
+ bindings = 'pyo3'
57
+
58
+ [tool.ruff]
59
+ line-length = 120
60
+ extend-select = [
61
+ # E and F are enabled by default
62
+ 'B', # flake8-bugbear
63
+ 'C4', # flake8-comprehensions
64
+ 'C90', # mccabe
65
+ 'I', # isort
66
+ 'N', # pep8-naming
67
+ 'Q', # flake8-quotes
68
+ 'RUF100', # ruff (unused noqa)
69
+ 'S', # flake8-bandit
70
+ 'W', # pycodestyle
71
+ ]
72
+ extend-ignore = [
73
+ 'B008', # function calls in args defaults are fine
74
+ 'B009', # getattr with constants is fine
75
+ 'B034', # re.split won't confuse us
76
+ 'B904', # rising without from is fine
77
+ 'E501', # leave line length to black
78
+ 'N818', # leave to us exceptions naming
79
+ 'S101', # assert is fine
80
+ ]
81
+ flake8-quotes = { inline-quotes = 'single', multiline-quotes = 'double' }
82
+ mccabe = { max-complexity = 16 }
83
+
84
+ [tool.ruff.format]
85
+ quote-style = 'single'
86
+
87
+ [tool.ruff.isort]
88
+ combine-as-imports = true
89
+ lines-after-imports = 2
90
+ known-first-party = ['rloop', 'tests']
91
+
92
+ [tool.ruff.per-file-ignores]
93
+ 'rloop/_rloop.pyi' = ['I001']
94
+ 'tests/**' = ['B018', 'S110', 'S501']
95
+
96
+ [tool.pytest.ini_options]
97
+ asyncio_mode = 'auto'