bencode-rs 0.0.8__tar.gz → 0.0.9__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/.github/mergify.yml +34 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.github/renovate.json +4 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.github/workflows/_build_wheels.yaml +18 -9
- bencode_rs-0.0.9/.github/workflows/autofix.yaml +26 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.github/workflows/ci.yaml +43 -34
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.github/workflows/release.yaml +2 -2
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.pre-commit-config.yaml +4 -5
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/Cargo.lock +55 -56
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/Cargo.toml +5 -2
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/PKG-INFO +2 -2
- bencode_rs-0.0.9/dprint.json +15 -0
- bencode_rs-0.0.9/pyproject.toml +49 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/rust-toolchain.toml +1 -1
- bencode_rs-0.0.9/rustfmt.toml +12 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/src/decode.rs +13 -9
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/src/encode.rs +108 -89
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/tests/test_1_encode.py +8 -1
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/tests/test_2_decode.py +1 -0
- bencode_rs-0.0.9/uv.lock +895 -0
- bencode_rs-0.0.8/.github/mergify.yml +0 -8
- bencode_rs-0.0.8/.github/workflows/autofix.yaml +0 -42
- bencode_rs-0.0.8/pyproject.toml +0 -50
- bencode_rs-0.0.8/rustfmt.toml +0 -12
- bencode_rs-0.0.8/uv.lock +0 -873
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.coveragerc +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.gitattributes +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/.gitignore +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/LICENSE +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/leak.py +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/py/bencode_rs/__init__.py +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/py/bencode_rs/__init__.pyi +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/py/bencode_rs/py.typed +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/readme.md +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/src/lib.rs +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/tests/bench.py +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/tests/fixtures/56507.torrent.bin +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/tests/fixtures/multiple-files.torrent.bin +0 -0
- {bencode_rs-0.0.8 → bencode_rs-0.0.9}/tests/fixtures/ubuntu-22.04.2-desktop-amd64.iso.torrent.bin +0 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
merge_queue:
|
|
2
|
+
max_parallel_checks: 1
|
|
3
|
+
queued_label: 'ci:queued'
|
|
4
|
+
dequeued_label: 'ci:dequeued'
|
|
5
|
+
|
|
6
|
+
queue_rules:
|
|
7
|
+
- name: renovate
|
|
8
|
+
update_method: merge
|
|
9
|
+
|
|
10
|
+
pull_request_rules:
|
|
11
|
+
- name: label conflicts
|
|
12
|
+
conditions:
|
|
13
|
+
- conflict
|
|
14
|
+
actions:
|
|
15
|
+
label:
|
|
16
|
+
toggle:
|
|
17
|
+
- conflict
|
|
18
|
+
|
|
19
|
+
- name: Automatic merge on approval
|
|
20
|
+
conditions:
|
|
21
|
+
- or:
|
|
22
|
+
- '#approved-reviews-by>=1'
|
|
23
|
+
- label=ci:auto-merge
|
|
24
|
+
- or:
|
|
25
|
+
- not:
|
|
26
|
+
and:
|
|
27
|
+
- 'head*=renovate/lockfile-maintenance-*'
|
|
28
|
+
- 'created-at<=24h ago'
|
|
29
|
+
- base=master
|
|
30
|
+
- check-success=cargo-fmt
|
|
31
|
+
- check-success=all-ci-jobs
|
|
32
|
+
actions:
|
|
33
|
+
queue:
|
|
34
|
+
name: renovate
|
|
@@ -11,14 +11,14 @@ jobs:
|
|
|
11
11
|
- name: Set up Python ${{ matrix.python-version }}
|
|
12
12
|
uses: actions/setup-python@v6
|
|
13
13
|
with:
|
|
14
|
-
python-version:
|
|
14
|
+
python-version: '3.14.4'
|
|
15
15
|
- name: Build sdist
|
|
16
16
|
uses: PyO3/maturin-action@v1
|
|
17
17
|
with:
|
|
18
18
|
command: sdist
|
|
19
19
|
args: --out dist
|
|
20
20
|
- name: Upload sdist
|
|
21
|
-
uses: actions/upload-artifact@
|
|
21
|
+
uses: actions/upload-artifact@v7
|
|
22
22
|
with:
|
|
23
23
|
name: wheels-sdist
|
|
24
24
|
path: dist
|
|
@@ -70,29 +70,38 @@ jobs:
|
|
|
70
70
|
- uses: actions/setup-python@v6
|
|
71
71
|
if: ${{ runner.os != 'Linux' }}
|
|
72
72
|
with:
|
|
73
|
-
python-version:
|
|
73
|
+
python-version: '3.10'
|
|
74
74
|
architecture: ${{ matrix.platform.py }}
|
|
75
75
|
|
|
76
|
-
-
|
|
76
|
+
- uses: actions/setup-python@v6
|
|
77
|
+
if: ${{ runner.os != 'Linux' }}
|
|
78
|
+
with:
|
|
79
|
+
python-version: '3.11'
|
|
80
|
+
architecture: ${{ matrix.platform.py }}
|
|
81
|
+
|
|
82
|
+
- name: Build wheels (cp310, non-abi3)
|
|
77
83
|
uses: PyO3/maturin-action@v1
|
|
78
84
|
with:
|
|
79
85
|
target: ${{ matrix.platform.target }}
|
|
80
|
-
args: --release --out dist
|
|
81
|
-
sccache:
|
|
86
|
+
args: --release --out dist --interpreter '3.11' --interpreter '3.10'
|
|
87
|
+
sccache: 'true'
|
|
82
88
|
manylinux: ${{ matrix.platform.manylinux }}
|
|
83
89
|
|
|
90
|
+
- run: ls -ahl dist
|
|
91
|
+
shell: bash
|
|
92
|
+
|
|
84
93
|
- name: Upload wheels
|
|
85
|
-
uses: actions/upload-artifact@
|
|
94
|
+
uses: actions/upload-artifact@v7
|
|
86
95
|
with:
|
|
87
96
|
name: wheels-${{ runner.os }}-${{ matrix.platform.target }}
|
|
88
97
|
path: dist
|
|
89
98
|
|
|
90
99
|
merge-wheel-artifact:
|
|
91
100
|
runs-on: ubuntu-24.04
|
|
92
|
-
needs: [
|
|
101
|
+
needs: ['sdist', 'wheel']
|
|
93
102
|
steps:
|
|
94
103
|
- name: Merge Artifacts
|
|
95
|
-
uses: actions/upload-artifact/merge@
|
|
104
|
+
uses: actions/upload-artifact/merge@v7
|
|
96
105
|
with:
|
|
97
106
|
name: wheel
|
|
98
107
|
pattern: wheels-*
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name: autofix.ci
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
cargo:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- name: Checkout code
|
|
16
|
+
uses: actions/checkout@v6
|
|
17
|
+
|
|
18
|
+
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
19
|
+
with:
|
|
20
|
+
components: rustfmt,clippy
|
|
21
|
+
|
|
22
|
+
- run: cargo fmt || true
|
|
23
|
+
- run: cargo clippy --fix --allow-dirty || true
|
|
24
|
+
- uses: trim21/actions/prek@master
|
|
25
|
+
|
|
26
|
+
- uses: autofix-ci/action@v1
|
|
@@ -9,12 +9,12 @@ on:
|
|
|
9
9
|
branches:
|
|
10
10
|
- master
|
|
11
11
|
tags-ignore:
|
|
12
|
-
-
|
|
12
|
+
- '*'
|
|
13
13
|
|
|
14
14
|
jobs:
|
|
15
15
|
build:
|
|
16
16
|
concurrency:
|
|
17
|
-
group:
|
|
17
|
+
group: '${{ github.workflow }}-${{ github.ref }}'
|
|
18
18
|
cancel-in-progress: true
|
|
19
19
|
uses: ./.github/workflows/_build_wheels.yaml
|
|
20
20
|
|
|
@@ -28,24 +28,30 @@ jobs:
|
|
|
28
28
|
- run: cargo fmt --check --all
|
|
29
29
|
- run: cargo clippy
|
|
30
30
|
|
|
31
|
+
all-ci-jobs:
|
|
32
|
+
needs: ['test', 'bench-cp', 'coverage', 'audit']
|
|
33
|
+
runs-on: ubuntu-slim
|
|
34
|
+
steps:
|
|
35
|
+
- run: echo 1
|
|
36
|
+
|
|
31
37
|
test:
|
|
32
38
|
strategy:
|
|
33
39
|
matrix:
|
|
34
|
-
os: [
|
|
40
|
+
os: ['ubuntu-24.04', 'macos-15', 'windows-latest']
|
|
35
41
|
python-version:
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
42
|
+
- '3.10'
|
|
43
|
+
- '3.11'
|
|
44
|
+
- '3.12'
|
|
45
|
+
- '3.13'
|
|
46
|
+
- '3.14'
|
|
41
47
|
|
|
42
|
-
runs-on:
|
|
48
|
+
runs-on: '${{ matrix.os }}'
|
|
43
49
|
|
|
44
50
|
needs: [build]
|
|
45
51
|
|
|
46
52
|
steps:
|
|
47
53
|
- uses: actions/checkout@v6
|
|
48
|
-
- uses: actions/download-artifact@
|
|
54
|
+
- uses: actions/download-artifact@v8
|
|
49
55
|
with:
|
|
50
56
|
name: wheel
|
|
51
57
|
path: dist
|
|
@@ -55,7 +61,7 @@ jobs:
|
|
|
55
61
|
python-version: ${{ matrix.python-version }}
|
|
56
62
|
|
|
57
63
|
- name: Set up uv
|
|
58
|
-
uses: astral-sh/setup-uv@
|
|
64
|
+
uses: astral-sh/setup-uv@v8.0.0
|
|
59
65
|
with:
|
|
60
66
|
enable-cache: true
|
|
61
67
|
activate-environment: true
|
|
@@ -74,9 +80,9 @@ jobs:
|
|
|
74
80
|
strategy:
|
|
75
81
|
matrix:
|
|
76
82
|
python-version:
|
|
77
|
-
-
|
|
83
|
+
- '3.12'
|
|
78
84
|
|
|
79
|
-
runs-on:
|
|
85
|
+
runs-on: 'ubuntu-24.04'
|
|
80
86
|
|
|
81
87
|
steps:
|
|
82
88
|
- uses: actions/checkout@v6
|
|
@@ -88,7 +94,7 @@ jobs:
|
|
|
88
94
|
python-version: ${{ matrix.python-version }}
|
|
89
95
|
|
|
90
96
|
- name: Set up uv
|
|
91
|
-
uses: astral-sh/setup-uv@
|
|
97
|
+
uses: astral-sh/setup-uv@v8.0.0
|
|
92
98
|
with:
|
|
93
99
|
enable-cache: true
|
|
94
100
|
activate-environment: true
|
|
@@ -104,7 +110,7 @@ jobs:
|
|
|
104
110
|
uses: CodSpeedHQ/action@v4
|
|
105
111
|
with:
|
|
106
112
|
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
107
|
-
mode: '
|
|
113
|
+
mode: 'simulation'
|
|
108
114
|
run: python -m pytest tests/bench.py --codspeed
|
|
109
115
|
|
|
110
116
|
audit:
|
|
@@ -117,35 +123,34 @@ jobs:
|
|
|
117
123
|
- name: Set up Python 3.14.2
|
|
118
124
|
uses: actions/setup-python@v6
|
|
119
125
|
with:
|
|
120
|
-
python-version:
|
|
126
|
+
python-version: '3.14.4'
|
|
121
127
|
|
|
122
128
|
- name: Set up uv
|
|
123
|
-
uses: astral-sh/setup-uv@
|
|
129
|
+
uses: astral-sh/setup-uv@v8.0.0
|
|
124
130
|
with:
|
|
125
131
|
enable-cache: true
|
|
126
132
|
activate-environment: true
|
|
127
133
|
|
|
128
134
|
- run: uv sync --dev
|
|
129
135
|
|
|
130
|
-
- uses: actions/download-artifact@
|
|
136
|
+
- uses: actions/download-artifact@v8
|
|
131
137
|
with:
|
|
132
138
|
name: wheel
|
|
133
139
|
path: dist
|
|
134
140
|
|
|
135
|
-
- run: abi3audit --verbose dist
|
|
141
|
+
- run: abi3audit --verbose dist/*abi3*.whl
|
|
136
142
|
- run: twine check --strict dist/*
|
|
137
143
|
|
|
138
|
-
|
|
139
144
|
coverage:
|
|
140
145
|
name: Coverage for ${{ matrix.python-version }}
|
|
141
146
|
strategy:
|
|
142
147
|
matrix:
|
|
143
148
|
python-version:
|
|
144
|
-
-
|
|
145
|
-
-
|
|
146
|
-
-
|
|
147
|
-
-
|
|
148
|
-
-
|
|
149
|
+
- '3.10'
|
|
150
|
+
- '3.11'
|
|
151
|
+
- '3.12'
|
|
152
|
+
- '3.13'
|
|
153
|
+
- '3.14'
|
|
149
154
|
|
|
150
155
|
runs-on: ubuntu-24.04
|
|
151
156
|
steps:
|
|
@@ -153,10 +158,10 @@ jobs:
|
|
|
153
158
|
- name: Set up Python ${{ matrix.python-version }}
|
|
154
159
|
uses: actions/setup-python@v6
|
|
155
160
|
with:
|
|
156
|
-
python-version:
|
|
161
|
+
python-version: '${{ matrix.python-version }}'
|
|
157
162
|
|
|
158
163
|
- name: Set up uv
|
|
159
|
-
uses: astral-sh/setup-uv@
|
|
164
|
+
uses: astral-sh/setup-uv@v8.0.0
|
|
160
165
|
with:
|
|
161
166
|
enable-cache: true
|
|
162
167
|
activate-environment: true
|
|
@@ -166,23 +171,27 @@ jobs:
|
|
|
166
171
|
components: llvm-tools
|
|
167
172
|
|
|
168
173
|
- name: Install cargo-llvm-cov
|
|
169
|
-
uses: taiki-e/install-action@
|
|
174
|
+
uses: taiki-e/install-action@v2
|
|
175
|
+
with:
|
|
176
|
+
tool: cargo-llvm-cov
|
|
170
177
|
|
|
171
178
|
- run: uv sync --dev
|
|
179
|
+
- run: uv tool install maturin
|
|
172
180
|
|
|
173
181
|
- name: Run coverage
|
|
174
182
|
run: |
|
|
175
183
|
set -euxo pipefail
|
|
176
184
|
source <(cargo llvm-cov show-env --export-prefix)
|
|
177
185
|
export CARGO_TARGET_DIR=$CARGO_LLVM_COV_TARGET_DIR
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
if [ "${{ matrix.python-version }}" = "3.10" ]; then
|
|
187
|
+
maturin develop --uv --no-default-features
|
|
188
|
+
else
|
|
189
|
+
maturin develop --uv
|
|
190
|
+
fi
|
|
191
|
+
pytest tests
|
|
183
192
|
cargo llvm-cov report --lcov --output-path coverage.lcov
|
|
184
193
|
|
|
185
|
-
- uses: codecov/codecov-action@
|
|
194
|
+
- uses: codecov/codecov-action@v6
|
|
186
195
|
with:
|
|
187
196
|
files: coverage.lcov
|
|
188
197
|
token: '${{ secrets.CODECOV_TOKEN }}'
|
|
@@ -17,9 +17,9 @@ jobs:
|
|
|
17
17
|
permissions:
|
|
18
18
|
id-token: write
|
|
19
19
|
steps:
|
|
20
|
-
- uses: actions/download-artifact@
|
|
20
|
+
- uses: actions/download-artifact@v8
|
|
21
21
|
with:
|
|
22
22
|
name: wheel
|
|
23
23
|
path: dist
|
|
24
24
|
|
|
25
|
-
- uses: pypa/gh-action-pypi-publish@v1.
|
|
25
|
+
- uses: pypa/gh-action-pypi-publish@v1.14.0
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
exclude: '^.*\.(bin|torrent)$'
|
|
2
2
|
|
|
3
3
|
repos:
|
|
4
|
-
- repo: https://github.com/
|
|
5
|
-
rev:
|
|
4
|
+
- repo: https://github.com/trim21/dprint-pre-commit
|
|
5
|
+
rev: 'v0.51.1.0'
|
|
6
6
|
hooks:
|
|
7
|
-
- id:
|
|
8
|
-
args: [--autofix, --indent, '2', '--preserve-quotes', --offset, '2']
|
|
7
|
+
- id: dprint
|
|
9
8
|
|
|
10
9
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
11
10
|
rev: v6.0.0
|
|
@@ -22,6 +21,6 @@ repos:
|
|
|
22
21
|
- id: end-of-file-fixer
|
|
23
22
|
|
|
24
23
|
- repo: https://github.com/psf/black
|
|
25
|
-
rev:
|
|
24
|
+
rev: 26.3.1
|
|
26
25
|
hooks:
|
|
27
26
|
- id: black
|
|
@@ -20,39 +20,37 @@ dependencies = [
|
|
|
20
20
|
|
|
21
21
|
[[package]]
|
|
22
22
|
name = "bytes"
|
|
23
|
-
version = "1.11.
|
|
23
|
+
version = "1.11.1"
|
|
24
24
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
25
|
-
checksum = "
|
|
25
|
+
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
|
26
26
|
|
|
27
27
|
[[package]]
|
|
28
|
-
name = "
|
|
29
|
-
version = "
|
|
28
|
+
name = "cc"
|
|
29
|
+
version = "1.2.60"
|
|
30
30
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
31
|
-
checksum = "
|
|
31
|
+
checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"
|
|
32
|
+
dependencies = [
|
|
33
|
+
"find-msvc-tools",
|
|
34
|
+
"shlex",
|
|
35
|
+
]
|
|
32
36
|
|
|
33
37
|
[[package]]
|
|
34
|
-
name = "
|
|
35
|
-
version = "
|
|
38
|
+
name = "find-msvc-tools"
|
|
39
|
+
version = "0.1.9"
|
|
36
40
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
-
checksum = "
|
|
38
|
-
dependencies = [
|
|
39
|
-
"rustversion",
|
|
40
|
-
]
|
|
41
|
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
41
42
|
|
|
42
43
|
[[package]]
|
|
43
|
-
name = "
|
|
44
|
-
version = "0.
|
|
44
|
+
name = "heck"
|
|
45
|
+
version = "0.5.0"
|
|
45
46
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
-
checksum = "
|
|
47
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
47
48
|
|
|
48
49
|
[[package]]
|
|
49
|
-
name = "
|
|
50
|
-
version = "0.
|
|
50
|
+
name = "libc"
|
|
51
|
+
version = "0.2.184"
|
|
51
52
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
-
checksum = "
|
|
53
|
-
dependencies = [
|
|
54
|
-
"autocfg",
|
|
55
|
-
]
|
|
53
|
+
checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af"
|
|
56
54
|
|
|
57
55
|
[[package]]
|
|
58
56
|
name = "num"
|
|
@@ -129,56 +127,54 @@ dependencies = [
|
|
|
129
127
|
|
|
130
128
|
[[package]]
|
|
131
129
|
name = "once_cell"
|
|
132
|
-
version = "1.21.
|
|
130
|
+
version = "1.21.4"
|
|
133
131
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
134
|
-
checksum = "
|
|
132
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
135
133
|
|
|
136
134
|
[[package]]
|
|
137
135
|
name = "portable-atomic"
|
|
138
|
-
version = "1.13.
|
|
136
|
+
version = "1.13.1"
|
|
139
137
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
140
|
-
checksum = "
|
|
138
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
141
139
|
|
|
142
140
|
[[package]]
|
|
143
141
|
name = "proc-macro2"
|
|
144
|
-
version = "1.0.
|
|
142
|
+
version = "1.0.106"
|
|
145
143
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
|
-
checksum = "
|
|
144
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
147
145
|
dependencies = [
|
|
148
146
|
"unicode-ident",
|
|
149
147
|
]
|
|
150
148
|
|
|
151
149
|
[[package]]
|
|
152
150
|
name = "pyo3"
|
|
153
|
-
version = "0.
|
|
151
|
+
version = "0.28.3"
|
|
154
152
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
-
checksum = "
|
|
153
|
+
checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
|
|
156
154
|
dependencies = [
|
|
157
|
-
"indoc",
|
|
158
155
|
"libc",
|
|
159
|
-
"memoffset",
|
|
160
156
|
"once_cell",
|
|
161
157
|
"portable-atomic",
|
|
162
158
|
"pyo3-build-config",
|
|
163
159
|
"pyo3-ffi",
|
|
164
160
|
"pyo3-macros",
|
|
165
|
-
"unindent",
|
|
166
161
|
]
|
|
167
162
|
|
|
168
163
|
[[package]]
|
|
169
164
|
name = "pyo3-build-config"
|
|
170
|
-
version = "0.
|
|
165
|
+
version = "0.28.3"
|
|
171
166
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
|
-
checksum = "
|
|
167
|
+
checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
|
|
173
168
|
dependencies = [
|
|
169
|
+
"python3-dll-a",
|
|
174
170
|
"target-lexicon",
|
|
175
171
|
]
|
|
176
172
|
|
|
177
173
|
[[package]]
|
|
178
174
|
name = "pyo3-ffi"
|
|
179
|
-
version = "0.
|
|
175
|
+
version = "0.28.3"
|
|
180
176
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
-
checksum = "
|
|
177
|
+
checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
|
|
182
178
|
dependencies = [
|
|
183
179
|
"libc",
|
|
184
180
|
"pyo3-build-config",
|
|
@@ -186,9 +182,9 @@ dependencies = [
|
|
|
186
182
|
|
|
187
183
|
[[package]]
|
|
188
184
|
name = "pyo3-macros"
|
|
189
|
-
version = "0.
|
|
185
|
+
version = "0.28.3"
|
|
190
186
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
-
checksum = "
|
|
187
|
+
checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
|
|
192
188
|
dependencies = [
|
|
193
189
|
"proc-macro2",
|
|
194
190
|
"pyo3-macros-backend",
|
|
@@ -198,9 +194,9 @@ dependencies = [
|
|
|
198
194
|
|
|
199
195
|
[[package]]
|
|
200
196
|
name = "pyo3-macros-backend"
|
|
201
|
-
version = "0.
|
|
197
|
+
version = "0.28.3"
|
|
202
198
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
203
|
-
checksum = "
|
|
199
|
+
checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
|
|
204
200
|
dependencies = [
|
|
205
201
|
"heck",
|
|
206
202
|
"proc-macro2",
|
|
@@ -209,20 +205,29 @@ dependencies = [
|
|
|
209
205
|
"syn",
|
|
210
206
|
]
|
|
211
207
|
|
|
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
|
+
|
|
212
217
|
[[package]]
|
|
213
218
|
name = "quote"
|
|
214
|
-
version = "1.0.
|
|
219
|
+
version = "1.0.45"
|
|
215
220
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
216
|
-
checksum = "
|
|
221
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
217
222
|
dependencies = [
|
|
218
223
|
"proc-macro2",
|
|
219
224
|
]
|
|
220
225
|
|
|
221
226
|
[[package]]
|
|
222
|
-
name = "
|
|
223
|
-
version = "1.0
|
|
227
|
+
name = "shlex"
|
|
228
|
+
version = "1.3.0"
|
|
224
229
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
-
checksum = "
|
|
230
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
226
231
|
|
|
227
232
|
[[package]]
|
|
228
233
|
name = "smallvec"
|
|
@@ -232,9 +237,9 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
|
232
237
|
|
|
233
238
|
[[package]]
|
|
234
239
|
name = "syn"
|
|
235
|
-
version = "2.0.
|
|
240
|
+
version = "2.0.117"
|
|
236
241
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
-
checksum = "
|
|
242
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
238
243
|
dependencies = [
|
|
239
244
|
"proc-macro2",
|
|
240
245
|
"quote",
|
|
@@ -243,18 +248,12 @@ dependencies = [
|
|
|
243
248
|
|
|
244
249
|
[[package]]
|
|
245
250
|
name = "target-lexicon"
|
|
246
|
-
version = "0.13.
|
|
251
|
+
version = "0.13.5"
|
|
247
252
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
-
checksum = "
|
|
253
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
249
254
|
|
|
250
255
|
[[package]]
|
|
251
256
|
name = "unicode-ident"
|
|
252
|
-
version = "1.0.
|
|
253
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
254
|
-
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
|
255
|
-
|
|
256
|
-
[[package]]
|
|
257
|
-
name = "unindent"
|
|
258
|
-
version = "0.2.4"
|
|
257
|
+
version = "1.0.24"
|
|
259
258
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
260
|
-
checksum = "
|
|
259
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
@@ -7,8 +7,11 @@ edition = "2021"
|
|
|
7
7
|
name = "bencode"
|
|
8
8
|
crate-type = ["cdylib"]
|
|
9
9
|
|
|
10
|
+
[features]
|
|
11
|
+
default = []
|
|
12
|
+
|
|
10
13
|
[dependencies]
|
|
11
|
-
bytes = "1.11.
|
|
14
|
+
bytes = "1.11.1"
|
|
12
15
|
num = "0.4.3"
|
|
13
|
-
pyo3 = { version = "0.
|
|
16
|
+
pyo3 = { version = "0.28.3", features = ['generate-import-lib'] }
|
|
14
17
|
smallvec = "1.15.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bencode-rs
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.9
|
|
4
4
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
5
5
|
Classifier: License :: OSI Approved :: MIT License
|
|
6
6
|
Classifier: Programming Language :: Rust
|
|
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
16
16
|
License-File: LICENSE
|
|
17
17
|
Summary: a bencode parser build with pyo3
|
|
18
18
|
Keywords: bittorrent,bencode,p2p
|
|
19
|
-
Requires-Python: >=3.10
|
|
19
|
+
Requires-Python: >=3.10
|
|
20
20
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
21
21
|
Project-URL: Homepage, https://github.com/trim21/bencode-rs
|
|
22
22
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"toml": {},
|
|
3
|
+
"yaml": {
|
|
4
|
+
"formatComments": true,
|
|
5
|
+
"quotes": "preferSingle"
|
|
6
|
+
},
|
|
7
|
+
"excludes": [
|
|
8
|
+
"**/__snapshots__/**"
|
|
9
|
+
],
|
|
10
|
+
"plugins": [
|
|
11
|
+
"https://plugins.dprint.dev/toml-0.7.0.wasm",
|
|
12
|
+
"https://plugins.dprint.dev/g-plane/pretty_yaml-v0.6.0.wasm",
|
|
13
|
+
"https://plugins.dprint.dev/json-0.21.1.wasm"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["maturin==1.12.6"]
|
|
3
|
+
build-backend = "maturin"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "bencode-rs"
|
|
7
|
+
version = "0.0.9"
|
|
8
|
+
requires-python = ">=3.10"
|
|
9
|
+
description = "a bencode parser build with pyo3"
|
|
10
|
+
readme = "readme.md"
|
|
11
|
+
classifiers = [
|
|
12
|
+
"Development Status :: 2 - Pre-Alpha",
|
|
13
|
+
"License :: OSI Approved :: MIT License",
|
|
14
|
+
"Programming Language :: Rust",
|
|
15
|
+
"Programming Language :: Python",
|
|
16
|
+
"Programming Language :: Python :: 3",
|
|
17
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
18
|
+
"Programming Language :: Python :: 3.10",
|
|
19
|
+
"Programming Language :: Python :: 3.11",
|
|
20
|
+
"Programming Language :: Python :: 3.12",
|
|
21
|
+
"Programming Language :: Python :: 3.13",
|
|
22
|
+
"Programming Language :: Python :: 3.14",
|
|
23
|
+
"Programming Language :: Python :: Implementation :: CPython",
|
|
24
|
+
]
|
|
25
|
+
keywords = ["bittorrent", "bencode", "p2p"]
|
|
26
|
+
|
|
27
|
+
[project.urls]
|
|
28
|
+
Homepage = 'https://github.com/trim21/bencode-rs'
|
|
29
|
+
|
|
30
|
+
[dependency-groups]
|
|
31
|
+
dev = [
|
|
32
|
+
"abi3audit>=0.0.26,<1.0",
|
|
33
|
+
"maturin>=1.12.6,<2.0",
|
|
34
|
+
"pytest>=9.0.3,<9.1",
|
|
35
|
+
"pytest-codspeed==4.4.0",
|
|
36
|
+
"pytest-github-actions-annotate-failures==0.4.0",
|
|
37
|
+
"twine>=6.2.0",
|
|
38
|
+
]
|
|
39
|
+
|
|
40
|
+
[tool.maturin]
|
|
41
|
+
module-name = "bencode_rs._bencode"
|
|
42
|
+
python-source = "py"
|
|
43
|
+
# we need PyBuffer which is stable since 3.11
|
|
44
|
+
features = [
|
|
45
|
+
{ feature = "pyo3/abi3-py311", python-version = ">=3.11" },
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
[tool.uv]
|
|
49
|
+
package = false
|