rsloop 0.1.0__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.
- rsloop-0.1.0/.github/workflows/wheels.yml +113 -0
- rsloop-0.1.0/.gitignore +12 -0
- rsloop-0.1.0/Cargo.lock +1483 -0
- rsloop-0.1.0/Cargo.toml +41 -0
- rsloop-0.1.0/LICENSE +201 -0
- rsloop-0.1.0/PKG-INFO +285 -0
- rsloop-0.1.0/README.md +252 -0
- rsloop-0.1.0/benchmarks/README.md +66 -0
- rsloop-0.1.0/benchmarks/compare_event_loops.py +489 -0
- rsloop-0.1.0/build.rs +3 -0
- rsloop-0.1.0/demo/README.md +53 -0
- rsloop-0.1.0/demo/fastapi_service.py +261 -0
- rsloop-0.1.0/examples/01_basics.py +58 -0
- rsloop-0.1.0/examples/02_fd_and_sockets.py +93 -0
- rsloop-0.1.0/examples/03_streams.py +46 -0
- rsloop-0.1.0/examples/04_unix_and_accepted_socket.py +102 -0
- rsloop-0.1.0/examples/05_pipes_signals_subprocesses.py +189 -0
- rsloop-0.1.0/pyproject.toml +45 -0
- rsloop-0.1.0/python/rsloop/__init__.py +117 -0
- rsloop-0.1.0/rsloop.png +0 -0
- rsloop-0.1.0/scripts/build-wheels.sh +106 -0
- rsloop-0.1.0/src/async_event.rs +32 -0
- rsloop-0.1.0/src/blocking.rs +19 -0
- rsloop-0.1.0/src/callbacks.rs +254 -0
- rsloop-0.1.0/src/context.rs +114 -0
- rsloop-0.1.0/src/errors.rs +28 -0
- rsloop-0.1.0/src/fast_streams.rs +1086 -0
- rsloop-0.1.0/src/fd_ops.rs +109 -0
- rsloop-0.1.0/src/lib.rs +48 -0
- rsloop-0.1.0/src/loop_core.rs +754 -0
- rsloop-0.1.0/src/process_transport.rs +691 -0
- rsloop-0.1.0/src/profiler.rs +135 -0
- rsloop-0.1.0/src/python_api.rs +2273 -0
- rsloop-0.1.0/src/python_names.rs +48 -0
- rsloop-0.1.0/src/runtime.rs +454 -0
- rsloop-0.1.0/src/stream_transport.rs +2178 -0
- rsloop-0.1.0/uv.lock +8 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
name: Wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
workflow_dispatch:
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build-wheels:
|
|
14
|
+
name: ${{ matrix.os_name }}
|
|
15
|
+
runs-on: ${{ matrix.runner }}
|
|
16
|
+
strategy:
|
|
17
|
+
fail-fast: false
|
|
18
|
+
matrix:
|
|
19
|
+
include:
|
|
20
|
+
- os_name: linux
|
|
21
|
+
runner: ubuntu-latest
|
|
22
|
+
- os_name: macos
|
|
23
|
+
runner: macos-15-intel
|
|
24
|
+
|
|
25
|
+
steps:
|
|
26
|
+
- name: Check out repository
|
|
27
|
+
uses: actions/checkout@v6
|
|
28
|
+
with:
|
|
29
|
+
persist-credentials: false
|
|
30
|
+
|
|
31
|
+
- name: Set up Python
|
|
32
|
+
uses: actions/setup-python@v6
|
|
33
|
+
with:
|
|
34
|
+
python-version: "3.13"
|
|
35
|
+
|
|
36
|
+
- name: Set up uv
|
|
37
|
+
uses: astral-sh/setup-uv@v6
|
|
38
|
+
|
|
39
|
+
- name: Set up Rust
|
|
40
|
+
uses: dtolnay/rust-toolchain@stable
|
|
41
|
+
with:
|
|
42
|
+
toolchain: 1.94.0
|
|
43
|
+
|
|
44
|
+
- name: Cache Cargo registry and target
|
|
45
|
+
uses: Swatinem/rust-cache@v2
|
|
46
|
+
|
|
47
|
+
- name: Build wheels
|
|
48
|
+
run: scripts/build-wheels.sh --out dist
|
|
49
|
+
|
|
50
|
+
- name: Upload wheel artifacts
|
|
51
|
+
uses: actions/upload-artifact@v4
|
|
52
|
+
with:
|
|
53
|
+
name: wheels-${{ matrix.os_name }}
|
|
54
|
+
path: dist/*.whl
|
|
55
|
+
if-no-files-found: error
|
|
56
|
+
|
|
57
|
+
build-sdist:
|
|
58
|
+
name: sdist
|
|
59
|
+
runs-on: ubuntu-latest
|
|
60
|
+
steps:
|
|
61
|
+
- name: Check out repository
|
|
62
|
+
uses: actions/checkout@v6
|
|
63
|
+
with:
|
|
64
|
+
persist-credentials: false
|
|
65
|
+
|
|
66
|
+
- name: Set up Python
|
|
67
|
+
uses: actions/setup-python@v6
|
|
68
|
+
with:
|
|
69
|
+
python-version: "3.13"
|
|
70
|
+
|
|
71
|
+
- name: Set up uv
|
|
72
|
+
uses: astral-sh/setup-uv@v6
|
|
73
|
+
|
|
74
|
+
- name: Set up Rust
|
|
75
|
+
uses: dtolnay/rust-toolchain@stable
|
|
76
|
+
with:
|
|
77
|
+
toolchain: 1.94.0
|
|
78
|
+
|
|
79
|
+
- name: Cache Cargo registry and target
|
|
80
|
+
uses: Swatinem/rust-cache@v2
|
|
81
|
+
|
|
82
|
+
- name: Build source distribution
|
|
83
|
+
run: uv run --no-project --with maturin maturin sdist --out dist
|
|
84
|
+
|
|
85
|
+
- name: Upload source distribution
|
|
86
|
+
uses: actions/upload-artifact@v4
|
|
87
|
+
with:
|
|
88
|
+
name: sdist
|
|
89
|
+
path: dist/*.tar.gz
|
|
90
|
+
if-no-files-found: error
|
|
91
|
+
|
|
92
|
+
publish-pypi:
|
|
93
|
+
name: publish
|
|
94
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
95
|
+
needs:
|
|
96
|
+
- build-wheels
|
|
97
|
+
- build-sdist
|
|
98
|
+
runs-on: ubuntu-latest
|
|
99
|
+
permissions:
|
|
100
|
+
contents: read
|
|
101
|
+
id-token: write
|
|
102
|
+
environment:
|
|
103
|
+
name: pypi
|
|
104
|
+
url: https://pypi.org/project/rsloop/
|
|
105
|
+
steps:
|
|
106
|
+
- name: Download release artifacts
|
|
107
|
+
uses: actions/download-artifact@v4
|
|
108
|
+
with:
|
|
109
|
+
path: dist
|
|
110
|
+
merge-multiple: true
|
|
111
|
+
|
|
112
|
+
- name: Publish to PyPI
|
|
113
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|