bencode-rs 0.0.9__tar.gz → 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.
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.github/renovate.json +2 -2
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.github/workflows/_build_wheels.yaml +78 -12
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.github/workflows/autofix.yaml +4 -4
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.github/workflows/ci.yaml +85 -28
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.github/workflows/release.yaml +4 -2
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.pre-commit-config.yaml +9 -1
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/Cargo.lock +34 -68
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/Cargo.toml +3 -3
- bencode_rs-0.1.0/PKG-INFO +88 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/leak.py +3 -4
- bencode_rs-0.1.0/py/bencode_rs/__init__.py +15 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/py/bencode_rs/__init__.pyi +1 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/pyproject.toml +20 -7
- bencode_rs-0.1.0/readme.md +65 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/rust-toolchain.toml +1 -1
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/src/decode.rs +44 -21
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/src/encode.rs +124 -53
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/src/lib.rs +3 -1
- bencode_rs-0.1.0/taskfile.dist.yaml +12 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/tests/test_1_encode.py +31 -3
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/tests/test_2_decode.py +83 -4
- bencode_rs-0.1.0/tests/test_3_freethreaded.py +55 -0
- bencode_rs-0.1.0/uv.lock +1055 -0
- bencode_rs-0.0.9/PKG-INFO +0 -49
- bencode_rs-0.0.9/py/bencode_rs/__init__.py +0 -8
- bencode_rs-0.0.9/readme.md +0 -26
- bencode_rs-0.0.9/uv.lock +0 -895
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.coveragerc +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.gitattributes +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.github/mergify.yml +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/.gitignore +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/LICENSE +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/dprint.json +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/py/bencode_rs/py.typed +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/rustfmt.toml +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/tests/bench.py +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/tests/fixtures/56507.torrent.bin +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/tests/fixtures/multiple-files.torrent.bin +0 -0
- {bencode_rs-0.0.9 → bencode_rs-0.1.0}/tests/fixtures/ubuntu-22.04.2-desktop-amd64.iso.torrent.bin +0 -0
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
3
|
"extends": [
|
|
4
4
|
"github>trim21/renovate-config",
|
|
5
|
-
"github>trim21/renovate-config:
|
|
6
|
-
"github>trim21/renovate-config:
|
|
5
|
+
"github>trim21/renovate-config:rust",
|
|
6
|
+
"github>trim21/renovate-config:python"
|
|
7
7
|
],
|
|
8
8
|
"labels": [
|
|
9
9
|
"ci:auto-merge",
|
|
@@ -5,13 +5,13 @@ on:
|
|
|
5
5
|
|
|
6
6
|
jobs:
|
|
7
7
|
sdist:
|
|
8
|
-
runs-on: ubuntu-
|
|
8
|
+
runs-on: ubuntu-26.04
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
10
|
+
- uses: actions/checkout@v7
|
|
11
11
|
- name: Set up Python ${{ matrix.python-version }}
|
|
12
|
-
uses: actions/setup-python@
|
|
12
|
+
uses: actions/setup-python@v7
|
|
13
13
|
with:
|
|
14
|
-
python-version: '3.
|
|
14
|
+
python-version: '3.15.2'
|
|
15
15
|
- name: Build sdist
|
|
16
16
|
uses: PyO3/maturin-action@v1
|
|
17
17
|
with:
|
|
@@ -62,43 +62,109 @@ jobs:
|
|
|
62
62
|
manylinux: musllinux_1_2
|
|
63
63
|
|
|
64
64
|
steps:
|
|
65
|
-
- uses: actions/checkout@
|
|
65
|
+
- uses: actions/checkout@v7
|
|
66
66
|
|
|
67
|
-
- uses:
|
|
67
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
68
68
|
if: ${{ runner.os != 'Linux' }}
|
|
69
69
|
|
|
70
|
-
- uses: actions/setup-python@
|
|
70
|
+
- uses: actions/setup-python@v7
|
|
71
71
|
if: ${{ runner.os != 'Linux' }}
|
|
72
72
|
with:
|
|
73
73
|
python-version: '3.10'
|
|
74
74
|
architecture: ${{ matrix.platform.py }}
|
|
75
75
|
|
|
76
|
-
- uses: actions/setup-python@
|
|
76
|
+
- uses: actions/setup-python@v7
|
|
77
77
|
if: ${{ runner.os != 'Linux' }}
|
|
78
78
|
with:
|
|
79
79
|
python-version: '3.11'
|
|
80
80
|
architecture: ${{ matrix.platform.py }}
|
|
81
81
|
|
|
82
|
-
- name: Build wheels
|
|
82
|
+
- name: Build wheels
|
|
83
83
|
uses: PyO3/maturin-action@v1
|
|
84
84
|
with:
|
|
85
85
|
target: ${{ matrix.platform.target }}
|
|
86
86
|
args: --release --out dist --interpreter '3.11' --interpreter '3.10'
|
|
87
|
-
sccache: 'true'
|
|
88
87
|
manylinux: ${{ matrix.platform.manylinux }}
|
|
89
88
|
|
|
90
89
|
- run: ls -ahl dist
|
|
91
90
|
shell: bash
|
|
92
91
|
|
|
92
|
+
- shell: bash
|
|
93
|
+
run: |
|
|
94
|
+
python3 -c "
|
|
95
|
+
import hashlib, glob
|
|
96
|
+
for f in sorted(glob.glob('dist/*.whl')):
|
|
97
|
+
h = hashlib.sha256(open(f, 'rb').read()).hexdigest()
|
|
98
|
+
print(f'{h} {f}')
|
|
99
|
+
"
|
|
100
|
+
|
|
93
101
|
- name: Upload wheels
|
|
94
102
|
uses: actions/upload-artifact@v7
|
|
95
103
|
with:
|
|
96
104
|
name: wheels-${{ runner.os }}-${{ matrix.platform.target }}
|
|
97
105
|
path: dist
|
|
98
106
|
|
|
107
|
+
wheel-freethreaded:
|
|
108
|
+
runs-on: ${{ matrix.platform.runner }}
|
|
109
|
+
strategy:
|
|
110
|
+
fail-fast: false
|
|
111
|
+
matrix:
|
|
112
|
+
platform:
|
|
113
|
+
- runner: macos-15
|
|
114
|
+
target: aarch64
|
|
115
|
+
py: arm64
|
|
116
|
+
manylinux: auto
|
|
117
|
+
|
|
118
|
+
- runner: windows-latest
|
|
119
|
+
target: x64
|
|
120
|
+
py: x64
|
|
121
|
+
manylinux: auto
|
|
122
|
+
|
|
123
|
+
- runner: ubuntu-24.04
|
|
124
|
+
target: x86_64
|
|
125
|
+
manylinux: auto
|
|
126
|
+
- runner: ubuntu-24.04-arm
|
|
127
|
+
target: aarch64
|
|
128
|
+
manylinux: auto
|
|
129
|
+
- runner: ubuntu-24.04
|
|
130
|
+
target: x86_64-unknown-linux-musl
|
|
131
|
+
manylinux: musllinux_1_2
|
|
132
|
+
- runner: ubuntu-24.04-arm
|
|
133
|
+
target: aarch64-unknown-linux-musl
|
|
134
|
+
manylinux: musllinux_1_2
|
|
135
|
+
|
|
136
|
+
steps:
|
|
137
|
+
- uses: actions/checkout@v7
|
|
138
|
+
|
|
139
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
140
|
+
if: ${{ runner.os != 'Linux' }}
|
|
141
|
+
|
|
142
|
+
# the manylinux images already ship the free-threaded interpreter
|
|
143
|
+
- uses: actions/setup-python@v7
|
|
144
|
+
if: ${{ runner.os != 'Linux' }}
|
|
145
|
+
with:
|
|
146
|
+
python-version: '3.14t'
|
|
147
|
+
architecture: ${{ matrix.platform.py }}
|
|
148
|
+
|
|
149
|
+
- name: Build wheels
|
|
150
|
+
uses: PyO3/maturin-action@v1
|
|
151
|
+
with:
|
|
152
|
+
target: ${{ matrix.platform.target }}
|
|
153
|
+
args: --release --out dist --interpreter '3.14t'
|
|
154
|
+
manylinux: ${{ matrix.platform.manylinux }}
|
|
155
|
+
|
|
156
|
+
- run: ls -ahl dist
|
|
157
|
+
shell: bash
|
|
158
|
+
|
|
159
|
+
- name: Upload wheels
|
|
160
|
+
uses: actions/upload-artifact@v7
|
|
161
|
+
with:
|
|
162
|
+
name: wheels-freethreaded-${{ runner.os }}-${{ matrix.platform.target }}
|
|
163
|
+
path: dist
|
|
164
|
+
|
|
99
165
|
merge-wheel-artifact:
|
|
100
|
-
runs-on: ubuntu-
|
|
101
|
-
needs: ['sdist', 'wheel']
|
|
166
|
+
runs-on: ubuntu-26.04
|
|
167
|
+
needs: ['sdist', 'wheel', 'wheel-freethreaded']
|
|
102
168
|
steps:
|
|
103
169
|
- name: Merge Artifacts
|
|
104
170
|
uses: actions/upload-artifact/merge@v7
|
|
@@ -13,14 +13,14 @@ jobs:
|
|
|
13
13
|
runs-on: ubuntu-latest
|
|
14
14
|
steps:
|
|
15
15
|
- name: Checkout code
|
|
16
|
-
uses: actions/checkout@
|
|
16
|
+
uses: actions/checkout@v7
|
|
17
17
|
|
|
18
|
-
- uses:
|
|
19
|
-
with:
|
|
20
|
-
components: rustfmt,clippy
|
|
18
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
21
19
|
|
|
22
20
|
- run: cargo fmt || true
|
|
23
21
|
- run: cargo clippy --fix --allow-dirty || true
|
|
22
|
+
# incomplete hook fixes are committed by autofix-ci/action below, the strict run lives in ci.yaml
|
|
24
23
|
- uses: trim21/actions/prek@master
|
|
24
|
+
continue-on-error: true
|
|
25
25
|
|
|
26
26
|
- uses: autofix-ci/action@v1
|
|
@@ -19,23 +19,42 @@ jobs:
|
|
|
19
19
|
uses: ./.github/workflows/_build_wheels.yaml
|
|
20
20
|
|
|
21
21
|
cargo-fmt:
|
|
22
|
-
runs-on: ubuntu-
|
|
22
|
+
runs-on: ubuntu-26.04
|
|
23
23
|
steps:
|
|
24
|
-
- uses: actions/checkout@
|
|
25
|
-
- uses:
|
|
26
|
-
with:
|
|
27
|
-
components: rustfmt,clippy
|
|
24
|
+
- uses: actions/checkout@v7
|
|
25
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
28
26
|
- run: cargo fmt --check --all
|
|
29
|
-
|
|
27
|
+
|
|
28
|
+
lint:
|
|
29
|
+
runs-on: ubuntu-26.04
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v7
|
|
32
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
33
|
+
- run: cargo clippy --all-targets -- -D warnings
|
|
34
|
+
|
|
35
|
+
prek:
|
|
36
|
+
runs-on: ubuntu-26.04
|
|
37
|
+
steps:
|
|
38
|
+
- uses: actions/checkout@v7
|
|
39
|
+
- uses: trim21/actions/prek@master
|
|
30
40
|
|
|
31
41
|
all-ci-jobs:
|
|
32
|
-
needs: [
|
|
42
|
+
needs: [
|
|
43
|
+
'test',
|
|
44
|
+
'test-freethreaded',
|
|
45
|
+
'bench-cp',
|
|
46
|
+
'coverage',
|
|
47
|
+
'audit',
|
|
48
|
+
'lint',
|
|
49
|
+
'prek',
|
|
50
|
+
]
|
|
33
51
|
runs-on: ubuntu-slim
|
|
34
52
|
steps:
|
|
35
53
|
- run: echo 1
|
|
36
54
|
|
|
37
55
|
test:
|
|
38
56
|
strategy:
|
|
57
|
+
fail-fast: false
|
|
39
58
|
matrix:
|
|
40
59
|
os: ['ubuntu-24.04', 'macos-15', 'windows-latest']
|
|
41
60
|
python-version:
|
|
@@ -50,18 +69,18 @@ jobs:
|
|
|
50
69
|
needs: [build]
|
|
51
70
|
|
|
52
71
|
steps:
|
|
53
|
-
- uses: actions/checkout@
|
|
72
|
+
- uses: actions/checkout@v7
|
|
54
73
|
- uses: actions/download-artifact@v8
|
|
55
74
|
with:
|
|
56
75
|
name: wheel
|
|
57
76
|
path: dist
|
|
58
77
|
- name: Set up Python ${{ matrix.python-version }}
|
|
59
|
-
uses: actions/setup-python@
|
|
78
|
+
uses: actions/setup-python@v7
|
|
60
79
|
with:
|
|
61
80
|
python-version: ${{ matrix.python-version }}
|
|
62
81
|
|
|
63
82
|
- name: Set up uv
|
|
64
|
-
uses: astral-sh/setup-uv@
|
|
83
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
65
84
|
with:
|
|
66
85
|
enable-cache: true
|
|
67
86
|
activate-environment: true
|
|
@@ -70,31 +89,69 @@ jobs:
|
|
|
70
89
|
run: |
|
|
71
90
|
uv sync --locked --group dev
|
|
72
91
|
|
|
73
|
-
- run:
|
|
92
|
+
- run: |
|
|
93
|
+
python3 -c "
|
|
94
|
+
import hashlib, glob
|
|
95
|
+
for f in sorted(glob.glob('dist/*.whl')):
|
|
96
|
+
h = hashlib.sha256(open(f, 'rb').read()).hexdigest()
|
|
97
|
+
print(f'{h} {f}')
|
|
98
|
+
"
|
|
99
|
+
|
|
100
|
+
- run: uv pip install --no-cache --reinstall bencode-rs --no-index --find-links ./dist/ -vv
|
|
74
101
|
|
|
75
102
|
- run: pytest -sv
|
|
76
103
|
env:
|
|
77
104
|
RUST_BACKTRACE: 'full'
|
|
78
105
|
|
|
106
|
+
test-freethreaded:
|
|
107
|
+
strategy:
|
|
108
|
+
fail-fast: false
|
|
109
|
+
matrix:
|
|
110
|
+
os: ['ubuntu-24.04', 'macos-15', 'windows-latest']
|
|
111
|
+
|
|
112
|
+
runs-on: '${{ matrix.os }}'
|
|
113
|
+
|
|
114
|
+
needs: [build]
|
|
115
|
+
|
|
116
|
+
steps:
|
|
117
|
+
- uses: actions/checkout@v7
|
|
118
|
+
- uses: actions/download-artifact@v8
|
|
119
|
+
with:
|
|
120
|
+
name: wheel
|
|
121
|
+
path: dist
|
|
122
|
+
|
|
123
|
+
- name: Set up Python 3.14t
|
|
124
|
+
uses: actions/setup-python@v7
|
|
125
|
+
with:
|
|
126
|
+
python-version: '3.14t'
|
|
127
|
+
|
|
128
|
+
# the dev group pulls in packages without free-threaded wheels, the suite itself needs pytest only
|
|
129
|
+
- run: python -m pip install pytest
|
|
130
|
+
- run: python -m pip install --no-index --find-links ./dist/ --force-reinstall bencode-rs
|
|
131
|
+
|
|
132
|
+
- run: python -m pytest -sv tests --ignore=tests/bench.py
|
|
133
|
+
env:
|
|
134
|
+
RUST_BACKTRACE: 'full'
|
|
135
|
+
|
|
79
136
|
bench-cp:
|
|
80
137
|
strategy:
|
|
81
138
|
matrix:
|
|
82
139
|
python-version:
|
|
83
140
|
- '3.12'
|
|
84
141
|
|
|
85
|
-
runs-on: 'ubuntu-
|
|
142
|
+
runs-on: 'ubuntu-26.04'
|
|
86
143
|
|
|
87
144
|
steps:
|
|
88
|
-
- uses: actions/checkout@
|
|
89
|
-
- uses:
|
|
145
|
+
- uses: actions/checkout@v7
|
|
146
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
90
147
|
|
|
91
148
|
- name: Set up Python ${{ matrix.python-version }}
|
|
92
|
-
uses: actions/setup-python@
|
|
149
|
+
uses: actions/setup-python@v7
|
|
93
150
|
with:
|
|
94
151
|
python-version: ${{ matrix.python-version }}
|
|
95
152
|
|
|
96
153
|
- name: Set up uv
|
|
97
|
-
uses: astral-sh/setup-uv@
|
|
154
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
98
155
|
with:
|
|
99
156
|
enable-cache: true
|
|
100
157
|
activate-environment: true
|
|
@@ -107,7 +164,7 @@ jobs:
|
|
|
107
164
|
- run: uv pip install bencode-rs --no-index --find-links ./dist/
|
|
108
165
|
|
|
109
166
|
- name: Run benchmarks
|
|
110
|
-
uses: CodSpeedHQ/action@
|
|
167
|
+
uses: CodSpeedHQ/action@v5
|
|
111
168
|
with:
|
|
112
169
|
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
113
170
|
mode: 'simulation'
|
|
@@ -116,17 +173,17 @@ jobs:
|
|
|
116
173
|
audit:
|
|
117
174
|
name: Audit
|
|
118
175
|
needs: [build]
|
|
119
|
-
runs-on: ubuntu-
|
|
176
|
+
runs-on: ubuntu-26.04
|
|
120
177
|
steps:
|
|
121
|
-
- uses: actions/checkout@
|
|
178
|
+
- uses: actions/checkout@v7
|
|
122
179
|
|
|
123
180
|
- name: Set up Python 3.14.2
|
|
124
|
-
uses: actions/setup-python@
|
|
181
|
+
uses: actions/setup-python@v7
|
|
125
182
|
with:
|
|
126
|
-
python-version: '3.
|
|
183
|
+
python-version: '3.15.2'
|
|
127
184
|
|
|
128
185
|
- name: Set up uv
|
|
129
|
-
uses: astral-sh/setup-uv@
|
|
186
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
130
187
|
with:
|
|
131
188
|
enable-cache: true
|
|
132
189
|
activate-environment: true
|
|
@@ -152,21 +209,21 @@ jobs:
|
|
|
152
209
|
- '3.13'
|
|
153
210
|
- '3.14'
|
|
154
211
|
|
|
155
|
-
runs-on: ubuntu-
|
|
212
|
+
runs-on: ubuntu-26.04
|
|
156
213
|
steps:
|
|
157
|
-
- uses: actions/checkout@
|
|
214
|
+
- uses: actions/checkout@v7
|
|
158
215
|
- name: Set up Python ${{ matrix.python-version }}
|
|
159
|
-
uses: actions/setup-python@
|
|
216
|
+
uses: actions/setup-python@v7
|
|
160
217
|
with:
|
|
161
218
|
python-version: '${{ matrix.python-version }}'
|
|
162
219
|
|
|
163
220
|
- name: Set up uv
|
|
164
|
-
uses: astral-sh/setup-uv@
|
|
221
|
+
uses: astral-sh/setup-uv@v10.3.3
|
|
165
222
|
with:
|
|
166
223
|
enable-cache: true
|
|
167
224
|
activate-environment: true
|
|
168
225
|
|
|
169
|
-
- uses:
|
|
226
|
+
- uses: trim21/setup-rust@v0.0.2
|
|
170
227
|
with:
|
|
171
228
|
components: llvm-tools
|
|
172
229
|
|
|
@@ -191,7 +248,7 @@ jobs:
|
|
|
191
248
|
pytest tests
|
|
192
249
|
cargo llvm-cov report --lcov --output-path coverage.lcov
|
|
193
250
|
|
|
194
|
-
- uses: codecov/codecov-action@
|
|
251
|
+
- uses: codecov/codecov-action@v7
|
|
195
252
|
with:
|
|
196
253
|
files: coverage.lcov
|
|
197
254
|
token: '${{ secrets.CODECOV_TOKEN }}'
|
|
@@ -12,7 +12,7 @@ jobs:
|
|
|
12
12
|
upload_all:
|
|
13
13
|
name: Upload wheels to PyPI
|
|
14
14
|
needs: [build]
|
|
15
|
-
runs-on: ubuntu-
|
|
15
|
+
runs-on: ubuntu-slim
|
|
16
16
|
environment: pypi
|
|
17
17
|
permissions:
|
|
18
18
|
id-token: write
|
|
@@ -22,4 +22,6 @@ jobs:
|
|
|
22
22
|
name: wheel
|
|
23
23
|
path: dist
|
|
24
24
|
|
|
25
|
-
- uses:
|
|
25
|
+
- uses: astral-sh/setup-uv@v10.3.3
|
|
26
|
+
|
|
27
|
+
- run: uv publish
|
|
@@ -20,7 +20,15 @@ repos:
|
|
|
20
20
|
args: [--fix=lf]
|
|
21
21
|
- id: end-of-file-fixer
|
|
22
22
|
|
|
23
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
24
|
+
# Ruff version.
|
|
25
|
+
rev: v0.17.3
|
|
26
|
+
hooks:
|
|
27
|
+
# Run the linter.
|
|
28
|
+
- id: ruff
|
|
29
|
+
args: [--fix]
|
|
30
|
+
|
|
23
31
|
- repo: https://github.com/psf/black
|
|
24
|
-
rev: 26.
|
|
32
|
+
rev: 26.10.1
|
|
25
33
|
hooks:
|
|
26
34
|
- id: black
|
|
@@ -4,9 +4,9 @@ version = 4
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "autocfg"
|
|
7
|
-
version = "1.5.
|
|
7
|
+
version = "1.5.1"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
10
|
|
|
11
11
|
[[package]]
|
|
12
12
|
name = "bencode"
|
|
@@ -20,25 +20,9 @@ dependencies = [
|
|
|
20
20
|
|
|
21
21
|
[[package]]
|
|
22
22
|
name = "bytes"
|
|
23
|
-
version = "1.
|
|
23
|
+
version = "1.12.1"
|
|
24
24
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
25
|
-
checksum = "
|
|
26
|
-
|
|
27
|
-
[[package]]
|
|
28
|
-
name = "cc"
|
|
29
|
-
version = "1.2.60"
|
|
30
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
31
|
-
checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"
|
|
32
|
-
dependencies = [
|
|
33
|
-
"find-msvc-tools",
|
|
34
|
-
"shlex",
|
|
35
|
-
]
|
|
36
|
-
|
|
37
|
-
[[package]]
|
|
38
|
-
name = "find-msvc-tools"
|
|
39
|
-
version = "0.1.9"
|
|
40
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
41
|
-
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
25
|
+
checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
|
|
42
26
|
|
|
43
27
|
[[package]]
|
|
44
28
|
name = "heck"
|
|
@@ -48,9 +32,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
|
48
32
|
|
|
49
33
|
[[package]]
|
|
50
34
|
name = "libc"
|
|
51
|
-
version = "0.2.
|
|
35
|
+
version = "0.2.191"
|
|
52
36
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
53
|
-
checksum = "
|
|
37
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
54
38
|
|
|
55
39
|
[[package]]
|
|
56
40
|
name = "num"
|
|
@@ -68,9 +52,9 @@ dependencies = [
|
|
|
68
52
|
|
|
69
53
|
[[package]]
|
|
70
54
|
name = "num-bigint"
|
|
71
|
-
version = "0.4.
|
|
55
|
+
version = "0.4.8"
|
|
72
56
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
-
checksum = "
|
|
57
|
+
checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
|
|
74
58
|
dependencies = [
|
|
75
59
|
"num-integer",
|
|
76
60
|
"num-traits",
|
|
@@ -87,20 +71,19 @@ dependencies = [
|
|
|
87
71
|
|
|
88
72
|
[[package]]
|
|
89
73
|
name = "num-integer"
|
|
90
|
-
version = "0.1.
|
|
74
|
+
version = "0.1.47"
|
|
91
75
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
-
checksum = "
|
|
76
|
+
checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
|
|
93
77
|
dependencies = [
|
|
94
78
|
"num-traits",
|
|
95
79
|
]
|
|
96
80
|
|
|
97
81
|
[[package]]
|
|
98
82
|
name = "num-iter"
|
|
99
|
-
version = "0.1.
|
|
83
|
+
version = "0.1.46"
|
|
100
84
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
101
|
-
checksum = "
|
|
85
|
+
checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
|
|
102
86
|
dependencies = [
|
|
103
|
-
"autocfg",
|
|
104
87
|
"num-integer",
|
|
105
88
|
"num-traits",
|
|
106
89
|
]
|
|
@@ -133,24 +116,24 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
|
133
116
|
|
|
134
117
|
[[package]]
|
|
135
118
|
name = "portable-atomic"
|
|
136
|
-
version = "1.
|
|
119
|
+
version = "1.15.0"
|
|
137
120
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
-
checksum = "
|
|
121
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
139
122
|
|
|
140
123
|
[[package]]
|
|
141
124
|
name = "proc-macro2"
|
|
142
|
-
version = "1.0.
|
|
125
|
+
version = "1.0.107"
|
|
143
126
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
-
checksum = "
|
|
127
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
145
128
|
dependencies = [
|
|
146
129
|
"unicode-ident",
|
|
147
130
|
]
|
|
148
131
|
|
|
149
132
|
[[package]]
|
|
150
133
|
name = "pyo3"
|
|
151
|
-
version = "0.
|
|
134
|
+
version = "0.30.1"
|
|
152
135
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
153
|
-
checksum = "
|
|
136
|
+
checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
|
|
154
137
|
dependencies = [
|
|
155
138
|
"libc",
|
|
156
139
|
"once_cell",
|
|
@@ -162,19 +145,18 @@ dependencies = [
|
|
|
162
145
|
|
|
163
146
|
[[package]]
|
|
164
147
|
name = "pyo3-build-config"
|
|
165
|
-
version = "0.
|
|
148
|
+
version = "0.30.1"
|
|
166
149
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
167
|
-
checksum = "
|
|
150
|
+
checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
|
|
168
151
|
dependencies = [
|
|
169
|
-
"python3-dll-a",
|
|
170
152
|
"target-lexicon",
|
|
171
153
|
]
|
|
172
154
|
|
|
173
155
|
[[package]]
|
|
174
156
|
name = "pyo3-ffi"
|
|
175
|
-
version = "0.
|
|
157
|
+
version = "0.30.1"
|
|
176
158
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
177
|
-
checksum = "
|
|
159
|
+
checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
|
|
178
160
|
dependencies = [
|
|
179
161
|
"libc",
|
|
180
162
|
"pyo3-build-config",
|
|
@@ -182,9 +164,9 @@ dependencies = [
|
|
|
182
164
|
|
|
183
165
|
[[package]]
|
|
184
166
|
name = "pyo3-macros"
|
|
185
|
-
version = "0.
|
|
167
|
+
version = "0.30.1"
|
|
186
168
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
187
|
-
checksum = "
|
|
169
|
+
checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
|
|
188
170
|
dependencies = [
|
|
189
171
|
"proc-macro2",
|
|
190
172
|
"pyo3-macros-backend",
|
|
@@ -194,52 +176,36 @@ dependencies = [
|
|
|
194
176
|
|
|
195
177
|
[[package]]
|
|
196
178
|
name = "pyo3-macros-backend"
|
|
197
|
-
version = "0.
|
|
179
|
+
version = "0.30.1"
|
|
198
180
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
199
|
-
checksum = "
|
|
181
|
+
checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
|
|
200
182
|
dependencies = [
|
|
201
183
|
"heck",
|
|
202
184
|
"proc-macro2",
|
|
203
|
-
"pyo3-build-config",
|
|
204
185
|
"quote",
|
|
205
186
|
"syn",
|
|
206
187
|
]
|
|
207
188
|
|
|
208
|
-
[[package]]
|
|
209
|
-
name = "python3-dll-a"
|
|
210
|
-
version = "0.2.15"
|
|
211
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
212
|
-
checksum = "d80ba7540edb18890d444c5aa8e1f1f99b1bdf26fb26ae383135325f4a36042b"
|
|
213
|
-
dependencies = [
|
|
214
|
-
"cc",
|
|
215
|
-
]
|
|
216
|
-
|
|
217
189
|
[[package]]
|
|
218
190
|
name = "quote"
|
|
219
|
-
version = "1.0.
|
|
191
|
+
version = "1.0.47"
|
|
220
192
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
221
|
-
checksum = "
|
|
193
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
222
194
|
dependencies = [
|
|
223
195
|
"proc-macro2",
|
|
224
196
|
]
|
|
225
197
|
|
|
226
|
-
[[package]]
|
|
227
|
-
name = "shlex"
|
|
228
|
-
version = "1.3.0"
|
|
229
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
-
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
231
|
-
|
|
232
198
|
[[package]]
|
|
233
199
|
name = "smallvec"
|
|
234
|
-
version = "1.
|
|
200
|
+
version = "1.16.4"
|
|
235
201
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
236
|
-
checksum = "
|
|
202
|
+
checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
|
|
237
203
|
|
|
238
204
|
[[package]]
|
|
239
205
|
name = "syn"
|
|
240
|
-
version = "
|
|
206
|
+
version = "3.0.9"
|
|
241
207
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
-
checksum = "
|
|
208
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
243
209
|
dependencies = [
|
|
244
210
|
"proc-macro2",
|
|
245
211
|
"quote",
|
|
@@ -254,6 +220,6 @@ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
|
254
220
|
|
|
255
221
|
[[package]]
|
|
256
222
|
name = "unicode-ident"
|
|
257
|
-
version = "1.0.
|
|
223
|
+
version = "1.0.27"
|
|
258
224
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
-
checksum = "
|
|
225
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
@@ -11,7 +11,7 @@ crate-type = ["cdylib"]
|
|
|
11
11
|
default = []
|
|
12
12
|
|
|
13
13
|
[dependencies]
|
|
14
|
-
bytes = "1.
|
|
14
|
+
bytes = "1.12.1"
|
|
15
15
|
num = "0.4.3"
|
|
16
|
-
pyo3 = { version = "0.
|
|
17
|
-
smallvec = "1.
|
|
16
|
+
pyo3 = { version = "0.30.1", features = ['generate-import-lib'] }
|
|
17
|
+
smallvec = "1.16.4"
|