rusty-req 0.1.5__tar.gz → 0.1.6__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 rusty-req might be problematic. Click here for more details.
- rusty_req-0.1.6/.github/workflows/build.yml +42 -0
- {rusty_req-0.1.5 → rusty_req-0.1.6}/.gitignore +1 -1
- {rusty_req-0.1.5 → rusty_req-0.1.6}/Cargo.lock +1 -1
- {rusty_req-0.1.5 → rusty_req-0.1.6}/Cargo.toml +1 -1
- {rusty_req-0.1.5 → rusty_req-0.1.6}/PKG-INFO +2 -1
- {rusty_req-0.1.5 → rusty_req-0.1.6}/README.md +1 -0
- {rusty_req-0.1.5 → rusty_req-0.1.6}/pyproject.toml +2 -2
- rusty_req-0.1.6/version.txt +1 -0
- rusty_req-0.1.5/.idea/.gitignore +0 -8
- rusty_req-0.1.5/.idea/modules.xml +0 -8
- rusty_req-0.1.5/.idea/py_req_ext.iml +0 -11
- rusty_req-0.1.5/.idea/vcs.xml +0 -6
- rusty_req-0.1.5/version.txt +0 -1
- {rusty_req-0.1.5 → rusty_req-0.1.6}/src/lib.rs +0 -0
- {rusty_req-0.1.5 → rusty_req-0.1.6}/sync_version.py +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
name: Build and Publish Rust Python Extension
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main # 代码提交到 main 分支触发
|
|
7
|
+
pull_request:
|
|
8
|
+
branches:
|
|
9
|
+
- main # PR 目标分支为 main 时触发
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
build-and-publish:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Setup Rust
|
|
18
|
+
uses: actions-rs/toolchain@v1
|
|
19
|
+
with:
|
|
20
|
+
profile: minimal
|
|
21
|
+
toolchain: stable
|
|
22
|
+
override: true
|
|
23
|
+
|
|
24
|
+
- name: Setup Python
|
|
25
|
+
uses: actions/setup-python@v4
|
|
26
|
+
with:
|
|
27
|
+
python-version: 3.12.11
|
|
28
|
+
|
|
29
|
+
- name: Upgrade pip
|
|
30
|
+
run: pip install --upgrade pip
|
|
31
|
+
|
|
32
|
+
- name: Install maturin
|
|
33
|
+
run: pip install maturin
|
|
34
|
+
|
|
35
|
+
- name: Build Rust Python extension
|
|
36
|
+
run: maturin build --release
|
|
37
|
+
|
|
38
|
+
- name: Publish to PyPI
|
|
39
|
+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
40
|
+
env:
|
|
41
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
42
|
+
run: maturin publish --skip-existing
|
|
@@ -18,4 +18,4 @@ target
|
|
|
18
18
|
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
19
19
|
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
20
20
|
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
21
|
-
.idea
|
|
21
|
+
.idea
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rusty-req
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.6
|
|
4
4
|
Classifier: Programming Language :: Python
|
|
5
5
|
Classifier: Programming Language :: Python :: 3
|
|
6
6
|
Classifier: Programming Language :: Rust
|
|
@@ -18,6 +18,7 @@ Project-URL: Documentation, https://github.com/KAY53N/rusty-req#readme
|
|
|
18
18
|
|
|
19
19
|
# rusty-req
|
|
20
20
|
|
|
21
|
+
|
|
21
22
|
基于 Rust + Python 的高性能异步请求库,适用于需要批量发送 HTTP 请求的场景。通过 Rust 实现并发请求逻辑,并通过 [maturin](https://github.com/PyO3/maturin) 封装为 Python 模块,兼具性能与易用性。
|
|
22
23
|
|
|
23
24
|
## 🔧 安装
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "rusty-req"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.6"
|
|
4
4
|
edition = "2021"
|
|
5
5
|
authors = [ "kaysen <kaysen820@gmail.com>",]
|
|
6
6
|
description = "High-performance async HTTP client built with Rust for Python."
|
|
@@ -16,7 +16,7 @@ build-backend = "maturin"
|
|
|
16
16
|
|
|
17
17
|
[project]
|
|
18
18
|
name = "rusty-req"
|
|
19
|
-
version = "0.1.
|
|
19
|
+
version = "0.1.6"
|
|
20
20
|
description = "High-performance async HTTP client built with Rust for Python."
|
|
21
21
|
readme = "README.md"
|
|
22
22
|
license = "MIT"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.6
|
rusty_req-0.1.5/.idea/.gitignore
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<project version="4">
|
|
3
|
-
<component name="ProjectModuleManager">
|
|
4
|
-
<modules>
|
|
5
|
-
<module fileurl="file://$PROJECT_DIR$/.idea/py_req_ext.iml" filepath="$PROJECT_DIR$/.idea/py_req_ext.iml" />
|
|
6
|
-
</modules>
|
|
7
|
-
</component>
|
|
8
|
-
</project>
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="EMPTY_MODULE" version="4">
|
|
3
|
-
<component name="NewModuleRootManager">
|
|
4
|
-
<content url="file://$MODULE_DIR$">
|
|
5
|
-
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
6
|
-
<excludeFolder url="file://$MODULE_DIR$/target" />
|
|
7
|
-
</content>
|
|
8
|
-
<orderEntry type="inheritedJdk" />
|
|
9
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
10
|
-
</component>
|
|
11
|
-
</module>
|
rusty_req-0.1.5/.idea/vcs.xml
DELETED
rusty_req-0.1.5/version.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.5
|
|
File without changes
|
|
File without changes
|