rnet 2.4.1__tar.gz → 3.0.0rc1__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.
Potentially problematic release.
This version of rnet might be problematic. Click here for more details.
- {rnet-2.4.1 → rnet-3.0.0rc1}/.github/workflows/ci.yml +18 -5
- {rnet-2.4.1 → rnet-3.0.0rc1}/Cargo.lock +187 -168
- rnet-3.0.0rc1/Cargo.toml +82 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/PKG-INFO +29 -27
- {rnet-2.4.1 → rnet-3.0.0rc1}/README.md +27 -21
- {rnet-2.4.1 → rnet-3.0.0rc1}/pyproject.toml +15 -19
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/README.md +2 -13
- {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/bench.py +6 -7
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/auth.py +1 -1
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/auth.py +3 -3
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/basic_auth.py +2 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/bearer_auth.py +2 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/body.py +2 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/client.py +5 -4
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/cookie.py +2 -2
- rnet-2.4.1/python/examples/blocking/impersonate.py → rnet-3.0.0rc1/python/examples/blocking/emulation.py +4 -7
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/form.py +2 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/get.py +4 -2
- rnet-2.4.1/python/examples/blocking/ws.py → rnet-3.0.0rc1/python/examples/blocking/http1_websocket.py +5 -3
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/json.py +2 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/multipart.py +4 -3
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/proxy.py +2 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/query.py +2 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/blocking/stream.py +3 -2
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/client.py +3 -3
- rnet-2.4.1/python/examples/impersonate.py → rnet-3.0.0rc1/python/examples/emulation.py +19 -18
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/form.py +1 -1
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/get.py +2 -0
- rnet-2.4.1/python/examples/ws.py → rnet-3.0.0rc1/python/examples/http1_websocket.py +4 -13
- rnet-3.0.0rc1/python/examples/http2_websocket.py +61 -0
- rnet-3.0.0rc1/python/examples/keylog.py +18 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/multipart.py +1 -1
- rnet-3.0.0rc1/python/examples/orig_headers.py +28 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/request.py +1 -1
- rnet-3.0.0rc1/python/rnet/__init__.py +19 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/rnet/__init__.pyi +60 -208
- rnet-2.4.1/python/rnet/blocking.pyi → rnet-3.0.0rc1/python/rnet/blocking.py +67 -172
- rnet-2.4.1/python/rnet/cookie.pyi → rnet-3.0.0rc1/python/rnet/cookie.py +56 -2
- rnet-3.0.0rc1/python/rnet/emulation.py +185 -0
- rnet-3.0.0rc1/python/rnet/exceptions.py +214 -0
- rnet-3.0.0rc1/python/rnet/header.py +431 -0
- rnet-3.0.0rc1/python/rnet/tls.py +161 -0
- rnet-3.0.0rc1/src/client/body.rs +181 -0
- rnet-3.0.0rc1/src/client/dns.rs +74 -0
- rnet-3.0.0rc1/src/client/future.rs +93 -0
- rnet-3.0.0rc1/src/client/mod.rs +1067 -0
- {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/client}/multipart/form.rs +0 -14
- rnet-3.0.0rc1/src/client/multipart/mod.rs +4 -0
- {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/client}/multipart/part.rs +2 -2
- rnet-3.0.0rc1/src/client/request.rs +214 -0
- {rnet-2.4.1/src/client/async_impl → rnet-3.0.0rc1/src/client}/response/http.rs +182 -102
- rnet-3.0.0rc1/src/client/response/mod.rs +10 -0
- rnet-3.0.0rc1/src/client/response/stream.rs +127 -0
- rnet-3.0.0rc1/src/client/response/ws/mod.rs +380 -0
- rnet-2.4.1/src/client/async_impl/response/ws/message.rs → rnet-3.0.0rc1/src/client/response/ws/msg.rs +31 -31
- rnet-2.4.1/src/typing/enums.rs → rnet-3.0.0rc1/src/emulation.rs +41 -62
- {rnet-2.4.1 → rnet-3.0.0rc1}/src/error.rs +29 -12
- rnet-3.0.0rc1/src/extractor.rs +186 -0
- rnet-3.0.0rc1/src/http/cookie.rs +339 -0
- {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/http}/header.rs +186 -110
- rnet-3.0.0rc1/src/http/mod.rs +31 -0
- {rnet-2.4.1/src/typing → rnet-3.0.0rc1/src/http}/status.rs +9 -12
- rnet-3.0.0rc1/src/lib.rs +247 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/src/macros.rs +3 -3
- rnet-3.0.0rc1/src/proxy.rs +152 -0
- rnet-3.0.0rc1/src/tls/identity.rs +48 -0
- rnet-3.0.0rc1/src/tls/keylog.rs +38 -0
- rnet-3.0.0rc1/src/tls/mod.rs +25 -0
- rnet-3.0.0rc1/src/tls/store.rs +76 -0
- rnet-3.0.0rc1/tests/cookie_test.py +120 -0
- rnet-2.4.1/tests/header_map_test.py → rnet-3.0.0rc1/tests/header_test.py +12 -0
- rnet-3.0.0rc1/tests/redirect_test.py +48 -0
- rnet-3.0.0rc1/tests/request_test.py +206 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/tests/response_test.py +43 -36
- rnet-3.0.0rc1/tests/tls_test.py +46 -0
- rnet-2.4.1/Cargo.toml +0 -57
- rnet-2.4.1/python/rnet/__init__.py +0 -14
- rnet-2.4.1/python/rnet/blocking.py +0 -1
- rnet-2.4.1/python/rnet/cookie.py +0 -1
- rnet-2.4.1/python/rnet/exceptions.py +0 -1
- rnet-2.4.1/python/rnet/exceptions.pyi +0 -64
- rnet-2.4.1/python/rnet/header.py +0 -1
- rnet-2.4.1/python/rnet/header.pyi +0 -103
- rnet-2.4.1/python/rnet/impersonate.py +0 -1
- rnet-2.4.1/python/rnet/impersonate.pyi +0 -147
- rnet-2.4.1/src/client/async_impl/mod.rs +0 -532
- rnet-2.4.1/src/client/async_impl/response/mod.rs +0 -7
- rnet-2.4.1/src/client/async_impl/response/ws/mod.rs +0 -249
- rnet-2.4.1/src/client/blocking/mod.rs +0 -194
- rnet-2.4.1/src/client/blocking/response/http.rs +0 -212
- rnet-2.4.1/src/client/blocking/response/mod.rs +0 -7
- rnet-2.4.1/src/client/blocking/response/ws.rs +0 -132
- rnet-2.4.1/src/client/default.rs +0 -54
- rnet-2.4.1/src/client/dns.rs +0 -59
- rnet-2.4.1/src/client/mod.rs +0 -127
- rnet-2.4.1/src/client/param/client.rs +0 -207
- rnet-2.4.1/src/client/param/mod.rs +0 -9
- rnet-2.4.1/src/client/param/request.rs +0 -91
- rnet-2.4.1/src/client/param/ws.rs +0 -120
- rnet-2.4.1/src/client/request_ops.rs +0 -252
- rnet-2.4.1/src/lib.rs +0 -129
- rnet-2.4.1/src/typing/body.rs +0 -49
- rnet-2.4.1/src/typing/cookie.rs +0 -190
- rnet-2.4.1/src/typing/ipaddr.rs +0 -37
- rnet-2.4.1/src/typing/json.rs +0 -15
- rnet-2.4.1/src/typing/mod.rs +0 -106
- rnet-2.4.1/src/typing/multipart/mod.rs +0 -7
- rnet-2.4.1/src/typing/proxy.rs +0 -146
- rnet-2.4.1/src/typing/ssl.rs +0 -9
- rnet-2.4.1/src/typing/stream.rs +0 -82
- rnet-2.4.1/tests/auth_test.py +0 -40
- rnet-2.4.1/tests/badssl_test.py +0 -14
- rnet-2.4.1/tests/client_test.py +0 -90
- rnet-2.4.1/tests/decompress_test.py +0 -34
- rnet-2.4.1/tests/request_test.py +0 -106
- {rnet-2.4.1 → rnet-3.0.0rc1}/.github/FUNDING.yml +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/.github/assets/capsolver.jpg +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/.github/dependabot.yml +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/.github/musl_build.sh +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/.gitignore +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/LICENSE +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/README.md +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/benchmark_multi.jpg +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/benchmark_multi_threaded.jpg +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/benchmark_results.csv +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/requirements.txt +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1/python}/benchmark/server.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/basic_auth.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/bearer_auth.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/body.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/exceptions.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/header_map.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/json.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/proxy.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/query.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/examples/stream.py +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/python/rnet/py.typed +0 -0
- {rnet-2.4.1 → rnet-3.0.0rc1}/src/buffer.rs +0 -0
|
@@ -21,7 +21,7 @@ on:
|
|
|
21
21
|
workflow_dispatch:
|
|
22
22
|
|
|
23
23
|
env:
|
|
24
|
-
MATURIIN_ARGS: '--interpreter
|
|
24
|
+
MATURIIN_ARGS: '--find-interpreter'
|
|
25
25
|
|
|
26
26
|
concurrency:
|
|
27
27
|
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
|
|
@@ -81,10 +81,12 @@ jobs:
|
|
|
81
81
|
platform:
|
|
82
82
|
- runner: ubuntu-latest
|
|
83
83
|
target: x86_64
|
|
84
|
+
allocator: jemalloc
|
|
84
85
|
apt_packages: ''
|
|
85
86
|
custom_env: {}
|
|
86
87
|
- runner: ubuntu-latest
|
|
87
88
|
target: x86
|
|
89
|
+
allocator: jemalloc
|
|
88
90
|
apt_packages: crossbuild-essential-i386
|
|
89
91
|
custom_env:
|
|
90
92
|
CC: i686-linux-gnu-gcc
|
|
@@ -92,6 +94,7 @@ jobs:
|
|
|
92
94
|
CARGO_TARGET_I686_UNKNOWN_LINUX_GNU_LINKER: i686-linux-gnu-g++
|
|
93
95
|
- runner: ubuntu-latest
|
|
94
96
|
target: aarch64
|
|
97
|
+
allocator: jemalloc
|
|
95
98
|
apt_packages: crossbuild-essential-arm64
|
|
96
99
|
custom_env:
|
|
97
100
|
CC: aarch64-linux-gnu-gcc
|
|
@@ -99,6 +102,7 @@ jobs:
|
|
|
99
102
|
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-g++
|
|
100
103
|
- runner: ubuntu-latest
|
|
101
104
|
target: armv7
|
|
105
|
+
allocator: jemalloc
|
|
102
106
|
apt_packages: crossbuild-essential-armhf
|
|
103
107
|
custom_env:
|
|
104
108
|
CC: arm-linux-gnueabihf-gcc
|
|
@@ -121,7 +125,7 @@ jobs:
|
|
|
121
125
|
with:
|
|
122
126
|
rust-toolchain: stable
|
|
123
127
|
target: ${{ matrix.platform.target }}
|
|
124
|
-
args: ${{ matrix.platform.target == 'x86_64' && '--release --out dist --zig' || '--release --out dist' }} ${{ env.MATURIIN_ARGS }}
|
|
128
|
+
args: ${{ matrix.platform.target == 'x86_64' && '--release --out dist --zig' || '--release --out dist' }} ${{ env.MATURIIN_ARGS }} --features ${{ matrix.platform.allocator }}
|
|
125
129
|
sccache: 'false'
|
|
126
130
|
manylinux: auto
|
|
127
131
|
container: 'off'
|
|
@@ -140,17 +144,21 @@ jobs:
|
|
|
140
144
|
platform:
|
|
141
145
|
- runner: ubuntu-22.04
|
|
142
146
|
target: x86_64-unknown-linux-musl
|
|
147
|
+
allocator: jemalloc
|
|
143
148
|
- runner: ubuntu-22.04
|
|
144
149
|
target: aarch64-unknown-linux-musl
|
|
150
|
+
allocator: jemalloc
|
|
145
151
|
- runner: ubuntu-22.04
|
|
146
152
|
target: armv7-unknown-linux-musleabihf
|
|
153
|
+
allocator: jemalloc
|
|
147
154
|
- runner: ubuntu-22.04
|
|
148
155
|
target: i686-unknown-linux-musl
|
|
156
|
+
allocator: jemalloc
|
|
149
157
|
steps:
|
|
150
158
|
- uses: actions/checkout@v4
|
|
151
159
|
- name: Build wheels
|
|
152
160
|
run:
|
|
153
|
-
bash .github/musl_build.sh ${{ matrix.platform.target }} "${{ env.MATURIIN_ARGS }}"
|
|
161
|
+
bash .github/musl_build.sh ${{ matrix.platform.target }} "${{ env.MATURIIN_ARGS }}" --features "${{ matrix.platform.allocator }}"
|
|
154
162
|
- name: Upload wheels
|
|
155
163
|
uses: actions/upload-artifact@v4
|
|
156
164
|
with:
|
|
@@ -165,12 +173,15 @@ jobs:
|
|
|
165
173
|
platform:
|
|
166
174
|
- runner: windows-latest
|
|
167
175
|
target: x64
|
|
176
|
+
allocator: mimalloc
|
|
168
177
|
python-architecture: x64
|
|
169
178
|
- runner: windows-latest
|
|
170
179
|
target: x86
|
|
180
|
+
allocator: mimalloc
|
|
171
181
|
python-architecture: x86
|
|
172
182
|
- runner: windows-latest
|
|
173
183
|
target: aarch64
|
|
184
|
+
allocator: mimalloc
|
|
174
185
|
steps:
|
|
175
186
|
- uses: actions/checkout@v4
|
|
176
187
|
- uses: actions/setup-python@v5
|
|
@@ -185,7 +196,7 @@ jobs:
|
|
|
185
196
|
uses: PyO3/maturin-action@v1
|
|
186
197
|
with:
|
|
187
198
|
target: ${{ matrix.platform.target }}
|
|
188
|
-
args: --release --out dist ${{ env.MATURIIN_ARGS }}
|
|
199
|
+
args: --release --out dist ${{ env.MATURIIN_ARGS }} --features ${{ matrix.platform.allocator || '' }}
|
|
189
200
|
sccache: 'true'
|
|
190
201
|
- name: Upload wheels
|
|
191
202
|
uses: actions/upload-artifact@v4
|
|
@@ -201,8 +212,10 @@ jobs:
|
|
|
201
212
|
platform:
|
|
202
213
|
- runner: macos-13
|
|
203
214
|
target: x86_64
|
|
215
|
+
allocator: jemalloc
|
|
204
216
|
- runner: macos-14
|
|
205
217
|
target: aarch64
|
|
218
|
+
allocator: jemalloc
|
|
206
219
|
steps:
|
|
207
220
|
- uses: actions/checkout@v4
|
|
208
221
|
- uses: actions/setup-python@v5
|
|
@@ -216,7 +229,7 @@ jobs:
|
|
|
216
229
|
uses: PyO3/maturin-action@v1
|
|
217
230
|
with:
|
|
218
231
|
target: ${{ matrix.platform.target }}
|
|
219
|
-
args: --release --out dist ${{ env.MATURIIN_ARGS }}
|
|
232
|
+
args: --release --out dist ${{ env.MATURIIN_ARGS }} --features ${{ matrix.platform.allocator || '' }}
|
|
220
233
|
sccache: 'true'
|
|
221
234
|
- name: Upload wheels
|
|
222
235
|
uses: actions/upload-artifact@v4
|