bencode-rs 0.0.7__tar.gz → 0.0.8__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.8/.github/mergify.yml +8 -0
- bencode_rs-0.0.8/.github/renovate.json +23 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/.github/workflows/_build_wheels.yaml +25 -22
- bencode_rs-0.0.8/.github/workflows/autofix.yaml +42 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/.github/workflows/ci.yaml +56 -27
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/.github/workflows/release.yaml +2 -2
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/.pre-commit-config.yaml +4 -4
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/Cargo.lock +45 -52
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/Cargo.toml +3 -5
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/PKG-INFO +10 -2
- bencode_rs-0.0.8/pyproject.toml +50 -0
- bencode_rs-0.0.8/rust-toolchain.toml +4 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/src/decode.rs +9 -12
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/src/encode.rs +26 -22
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/tests/bench.py +16 -1
- bencode_rs-0.0.8/tests/fixtures/multiple-files.torrent.bin +311 -2
- bencode_rs-0.0.8/uv.lock +873 -0
- bencode_rs-0.0.7/.github/renovate.json +0 -13
- bencode_rs-0.0.7/pyproject.toml +0 -29
- bencode_rs-0.0.7/requirements.txt +0 -10
- bencode_rs-0.0.7/rust-toolchain.toml +0 -4
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/.coveragerc +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/.gitattributes +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/.gitignore +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/LICENSE +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/leak.py +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/py/bencode_rs/__init__.py +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/py/bencode_rs/__init__.pyi +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/py/bencode_rs/py.typed +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/readme.md +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/rustfmt.toml +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/src/lib.rs +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/tests/fixtures/56507.torrent.bin +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/tests/fixtures/ubuntu-22.04.2-desktop-amd64.iso.torrent.bin +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/tests/test_1_encode.py +0 -0
- {bencode_rs-0.0.7 → bencode_rs-0.0.8}/tests/test_2_decode.py +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
+
"extends": [
|
|
4
|
+
"github>trim21/renovate-config",
|
|
5
|
+
"github>trim21/renovate-config:python",
|
|
6
|
+
"github>trim21/renovate-config:rust"
|
|
7
|
+
],
|
|
8
|
+
"lockFileMaintenance": {
|
|
9
|
+
"enabled": true
|
|
10
|
+
},
|
|
11
|
+
"cargo": {
|
|
12
|
+
"enabled": true
|
|
13
|
+
},
|
|
14
|
+
"rangeStrategy": "bump",
|
|
15
|
+
"packageRules": [
|
|
16
|
+
{
|
|
17
|
+
"matchDepTypes": [
|
|
18
|
+
"requires-python"
|
|
19
|
+
],
|
|
20
|
+
"enabled": false
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -7,18 +7,18 @@ jobs:
|
|
|
7
7
|
sdist:
|
|
8
8
|
runs-on: ubuntu-24.04
|
|
9
9
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
10
|
+
- uses: actions/checkout@v6
|
|
11
11
|
- name: Set up Python ${{ matrix.python-version }}
|
|
12
|
-
uses: actions/setup-python@
|
|
12
|
+
uses: actions/setup-python@v6
|
|
13
13
|
with:
|
|
14
|
-
python-version: "3.
|
|
14
|
+
python-version: "3.14.2"
|
|
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@v6
|
|
22
22
|
with:
|
|
23
23
|
name: wheels-sdist
|
|
24
24
|
path: dist
|
|
@@ -29,45 +29,48 @@ jobs:
|
|
|
29
29
|
fail-fast: false
|
|
30
30
|
matrix:
|
|
31
31
|
platform:
|
|
32
|
-
- runner: macos-
|
|
33
|
-
target: x86_64
|
|
34
|
-
py: x64
|
|
35
|
-
|
|
36
|
-
- runner: macos-14
|
|
32
|
+
- runner: macos-15
|
|
37
33
|
target: aarch64
|
|
38
34
|
py: arm64
|
|
35
|
+
manylinux: auto
|
|
39
36
|
|
|
40
37
|
- runner: windows-latest
|
|
41
38
|
target: x64
|
|
42
39
|
py: x64
|
|
43
|
-
|
|
44
|
-
- runner: windows-latest
|
|
45
|
-
target: x86
|
|
46
|
-
py: x86
|
|
40
|
+
manylinux: auto
|
|
47
41
|
|
|
48
42
|
- runner: ubuntu-24.04
|
|
49
43
|
target: x86_64
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
- runner: ubuntu-24.04
|
|
44
|
+
manylinux: auto
|
|
45
|
+
- runner: ubuntu-24.04-arm
|
|
53
46
|
target: aarch64
|
|
47
|
+
manylinux: auto
|
|
54
48
|
- runner: ubuntu-24.04
|
|
55
49
|
target: armv7
|
|
50
|
+
manylinux: auto
|
|
56
51
|
- runner: ubuntu-24.04
|
|
57
52
|
target: s390x
|
|
53
|
+
manylinux: auto
|
|
58
54
|
- runner: ubuntu-24.04
|
|
59
55
|
target: ppc64le
|
|
56
|
+
manylinux: auto
|
|
57
|
+
- runner: ubuntu-24.04
|
|
58
|
+
target: x86_64-unknown-linux-musl
|
|
59
|
+
manylinux: musllinux_1_2
|
|
60
|
+
- runner: ubuntu-24.04-arm
|
|
61
|
+
target: aarch64-unknown-linux-musl
|
|
62
|
+
manylinux: musllinux_1_2
|
|
60
63
|
|
|
61
64
|
steps:
|
|
62
|
-
- uses: actions/checkout@
|
|
65
|
+
- uses: actions/checkout@v6
|
|
63
66
|
|
|
64
67
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
65
68
|
if: ${{ runner.os != 'Linux' }}
|
|
66
69
|
|
|
67
|
-
- uses: actions/setup-python@
|
|
70
|
+
- uses: actions/setup-python@v6
|
|
68
71
|
if: ${{ runner.os != 'Linux' }}
|
|
69
72
|
with:
|
|
70
|
-
python-version: "3.
|
|
73
|
+
python-version: "3.14.2"
|
|
71
74
|
architecture: ${{ matrix.platform.py }}
|
|
72
75
|
|
|
73
76
|
- name: Build wheels
|
|
@@ -76,10 +79,10 @@ jobs:
|
|
|
76
79
|
target: ${{ matrix.platform.target }}
|
|
77
80
|
args: --release --out dist
|
|
78
81
|
sccache: "true"
|
|
79
|
-
manylinux:
|
|
82
|
+
manylinux: ${{ matrix.platform.manylinux }}
|
|
80
83
|
|
|
81
84
|
- name: Upload wheels
|
|
82
|
-
uses: actions/upload-artifact@
|
|
85
|
+
uses: actions/upload-artifact@v6
|
|
83
86
|
with:
|
|
84
87
|
name: wheels-${{ runner.os }}-${{ matrix.platform.target }}
|
|
85
88
|
path: dist
|
|
@@ -89,7 +92,7 @@ jobs:
|
|
|
89
92
|
needs: ["sdist", "wheel"]
|
|
90
93
|
steps:
|
|
91
94
|
- name: Merge Artifacts
|
|
92
|
-
uses: actions/upload-artifact/merge@
|
|
95
|
+
uses: actions/upload-artifact/merge@v6
|
|
93
96
|
with:
|
|
94
97
|
name: wheel
|
|
95
98
|
pattern: wheels-*
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
|
23
|
+
|
|
24
|
+
- run: cargo clippy --fix
|
|
25
|
+
|
|
26
|
+
- uses: autofix-ci/action@v1
|
|
27
|
+
|
|
28
|
+
pre-commit:
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
steps:
|
|
31
|
+
- uses: actions/checkout@v6
|
|
32
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
33
|
+
uses: actions/setup-python@v6
|
|
34
|
+
with:
|
|
35
|
+
python-version: "${{ matrix.python-version }}"
|
|
36
|
+
cache: pip
|
|
37
|
+
|
|
38
|
+
- run: pip install pre-commit
|
|
39
|
+
|
|
40
|
+
- uses: trim21/actions/pre-commit@master
|
|
41
|
+
|
|
42
|
+
- uses: autofix-ci/action@v1
|
|
@@ -21,7 +21,7 @@ jobs:
|
|
|
21
21
|
cargo-fmt:
|
|
22
22
|
runs-on: ubuntu-24.04
|
|
23
23
|
steps:
|
|
24
|
-
- uses: actions/checkout@
|
|
24
|
+
- uses: actions/checkout@v6
|
|
25
25
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
26
26
|
with:
|
|
27
27
|
components: rustfmt,clippy
|
|
@@ -31,33 +31,40 @@ jobs:
|
|
|
31
31
|
test:
|
|
32
32
|
strategy:
|
|
33
33
|
matrix:
|
|
34
|
-
os: ["ubuntu-24.04", "macos-
|
|
34
|
+
os: ["ubuntu-24.04", "macos-15", "windows-latest"]
|
|
35
35
|
python-version:
|
|
36
36
|
- "3.10"
|
|
37
37
|
- "3.11"
|
|
38
38
|
- "3.12"
|
|
39
39
|
- "3.13"
|
|
40
|
+
- "3.14"
|
|
40
41
|
|
|
41
42
|
runs-on: "${{ matrix.os }}"
|
|
42
43
|
|
|
43
44
|
needs: [build]
|
|
44
45
|
|
|
45
46
|
steps:
|
|
46
|
-
- uses: actions/checkout@
|
|
47
|
-
- uses: actions/download-artifact@
|
|
47
|
+
- uses: actions/checkout@v6
|
|
48
|
+
- uses: actions/download-artifact@v7
|
|
48
49
|
with:
|
|
49
50
|
name: wheel
|
|
50
51
|
path: dist
|
|
51
|
-
|
|
52
52
|
- name: Set up Python ${{ matrix.python-version }}
|
|
53
|
-
uses: actions/setup-python@
|
|
53
|
+
uses: actions/setup-python@v6
|
|
54
54
|
with:
|
|
55
55
|
python-version: ${{ matrix.python-version }}
|
|
56
|
-
cache: "pip" # caching pip dependencies
|
|
57
56
|
|
|
58
|
-
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
- name: Set up uv
|
|
58
|
+
uses: astral-sh/setup-uv@v7
|
|
59
|
+
with:
|
|
60
|
+
enable-cache: true
|
|
61
|
+
activate-environment: true
|
|
62
|
+
|
|
63
|
+
- name: Install Python deps from lock (dev)
|
|
64
|
+
run: |
|
|
65
|
+
uv sync --locked --group dev
|
|
66
|
+
|
|
67
|
+
- run: uv pip install bencode-rs --no-index --find-links ./dist/
|
|
61
68
|
|
|
62
69
|
- run: pytest -sv
|
|
63
70
|
env:
|
|
@@ -72,23 +79,32 @@ jobs:
|
|
|
72
79
|
runs-on: "ubuntu-24.04"
|
|
73
80
|
|
|
74
81
|
steps:
|
|
75
|
-
- uses: actions/checkout@
|
|
82
|
+
- uses: actions/checkout@v6
|
|
76
83
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
77
84
|
|
|
78
85
|
- name: Set up Python ${{ matrix.python-version }}
|
|
79
|
-
uses: actions/setup-python@
|
|
86
|
+
uses: actions/setup-python@v6
|
|
80
87
|
with:
|
|
81
88
|
python-version: ${{ matrix.python-version }}
|
|
82
|
-
cache: "pip"
|
|
83
89
|
|
|
84
|
-
-
|
|
90
|
+
- name: Set up uv
|
|
91
|
+
uses: astral-sh/setup-uv@v7
|
|
92
|
+
with:
|
|
93
|
+
enable-cache: true
|
|
94
|
+
activate-environment: true
|
|
95
|
+
|
|
96
|
+
- name: Install Python deps from lock (dev)
|
|
97
|
+
run: |
|
|
98
|
+
uv sync --locked --group dev
|
|
99
|
+
|
|
85
100
|
- run: maturin build --release --out dist
|
|
86
|
-
- run: pip install bencode-rs --no-index --find-links ./dist/
|
|
101
|
+
- run: uv pip install bencode-rs --no-index --find-links ./dist/
|
|
87
102
|
|
|
88
103
|
- name: Run benchmarks
|
|
89
|
-
uses: CodSpeedHQ/action@
|
|
104
|
+
uses: CodSpeedHQ/action@v4
|
|
90
105
|
with:
|
|
91
106
|
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
107
|
+
mode: 'instrumentation'
|
|
92
108
|
run: python -m pytest tests/bench.py --codspeed
|
|
93
109
|
|
|
94
110
|
audit:
|
|
@@ -96,22 +112,28 @@ jobs:
|
|
|
96
112
|
needs: [build]
|
|
97
113
|
runs-on: ubuntu-24.04
|
|
98
114
|
steps:
|
|
99
|
-
- uses: actions/checkout@
|
|
115
|
+
- uses: actions/checkout@v6
|
|
116
|
+
|
|
117
|
+
- name: Set up Python 3.14.2
|
|
118
|
+
uses: actions/setup-python@v6
|
|
119
|
+
with:
|
|
120
|
+
python-version: "3.14.2"
|
|
100
121
|
|
|
101
|
-
-
|
|
122
|
+
- name: Set up uv
|
|
123
|
+
uses: astral-sh/setup-uv@v7
|
|
102
124
|
with:
|
|
103
|
-
|
|
104
|
-
|
|
125
|
+
enable-cache: true
|
|
126
|
+
activate-environment: true
|
|
105
127
|
|
|
106
|
-
- run:
|
|
128
|
+
- run: uv sync --dev
|
|
107
129
|
|
|
108
|
-
- uses: actions/download-artifact@
|
|
130
|
+
- uses: actions/download-artifact@v7
|
|
109
131
|
with:
|
|
110
132
|
name: wheel
|
|
111
133
|
path: dist
|
|
112
134
|
|
|
113
135
|
- run: abi3audit --verbose dist/*.whl
|
|
114
|
-
- run:
|
|
136
|
+
- run: twine check --strict dist/*
|
|
115
137
|
|
|
116
138
|
|
|
117
139
|
coverage:
|
|
@@ -123,14 +145,21 @@ jobs:
|
|
|
123
145
|
- "3.11"
|
|
124
146
|
- "3.12"
|
|
125
147
|
- "3.13"
|
|
148
|
+
- "3.14"
|
|
126
149
|
|
|
127
150
|
runs-on: ubuntu-24.04
|
|
128
151
|
steps:
|
|
129
|
-
- uses: actions/checkout@
|
|
130
|
-
-
|
|
152
|
+
- uses: actions/checkout@v6
|
|
153
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
154
|
+
uses: actions/setup-python@v6
|
|
131
155
|
with:
|
|
132
156
|
python-version: "${{ matrix.python-version }}"
|
|
133
|
-
|
|
157
|
+
|
|
158
|
+
- name: Set up uv
|
|
159
|
+
uses: astral-sh/setup-uv@v7
|
|
160
|
+
with:
|
|
161
|
+
enable-cache: true
|
|
162
|
+
activate-environment: true
|
|
134
163
|
|
|
135
164
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
136
165
|
with:
|
|
@@ -139,7 +168,7 @@ jobs:
|
|
|
139
168
|
- name: Install cargo-llvm-cov
|
|
140
169
|
uses: taiki-e/install-action@cargo-llvm-cov
|
|
141
170
|
|
|
142
|
-
- run:
|
|
171
|
+
- run: uv sync --dev
|
|
143
172
|
|
|
144
173
|
- name: Run coverage
|
|
145
174
|
run: |
|
|
@@ -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@v7
|
|
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.13.0
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
exclude: '^.*\.bin$'
|
|
1
|
+
exclude: '^.*\.(bin|torrent)$'
|
|
2
2
|
|
|
3
3
|
repos:
|
|
4
4
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
|
5
|
-
rev: v2.
|
|
5
|
+
rev: v2.16.0
|
|
6
6
|
hooks:
|
|
7
7
|
- id: pretty-format-yaml
|
|
8
8
|
args: [--autofix, --indent, '2', '--preserve-quotes', --offset, '2']
|
|
9
9
|
|
|
10
10
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
11
|
-
rev:
|
|
11
|
+
rev: v6.0.0
|
|
12
12
|
hooks:
|
|
13
13
|
- id: check-case-conflict
|
|
14
14
|
- id: check-ast
|
|
@@ -22,6 +22,6 @@ repos:
|
|
|
22
22
|
- id: end-of-file-fixer
|
|
23
23
|
|
|
24
24
|
- repo: https://github.com/psf/black
|
|
25
|
-
rev:
|
|
25
|
+
rev: 25.12.0
|
|
26
26
|
hooks:
|
|
27
27
|
- id: black
|
|
@@ -4,9 +4,9 @@ version = 4
|
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "autocfg"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.5.0"
|
|
8
8
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
-
checksum = "
|
|
9
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
10
10
|
|
|
11
11
|
[[package]]
|
|
12
12
|
name = "bencode"
|
|
@@ -14,23 +14,15 @@ version = "0.0.0"
|
|
|
14
14
|
dependencies = [
|
|
15
15
|
"bytes",
|
|
16
16
|
"num",
|
|
17
|
-
"once_cell",
|
|
18
17
|
"pyo3",
|
|
19
18
|
"smallvec",
|
|
20
|
-
"syncpool",
|
|
21
19
|
]
|
|
22
20
|
|
|
23
21
|
[[package]]
|
|
24
22
|
name = "bytes"
|
|
25
|
-
version = "1.
|
|
26
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
-
checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b"
|
|
28
|
-
|
|
29
|
-
[[package]]
|
|
30
|
-
name = "cfg-if"
|
|
31
|
-
version = "1.0.0"
|
|
23
|
+
version = "1.11.0"
|
|
32
24
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
-
checksum = "
|
|
25
|
+
checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3"
|
|
34
26
|
|
|
35
27
|
[[package]]
|
|
36
28
|
name = "heck"
|
|
@@ -40,15 +32,18 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
|
40
32
|
|
|
41
33
|
[[package]]
|
|
42
34
|
name = "indoc"
|
|
43
|
-
version = "2.0.
|
|
35
|
+
version = "2.0.7"
|
|
44
36
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
-
checksum = "
|
|
37
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
38
|
+
dependencies = [
|
|
39
|
+
"rustversion",
|
|
40
|
+
]
|
|
46
41
|
|
|
47
42
|
[[package]]
|
|
48
43
|
name = "libc"
|
|
49
|
-
version = "0.2.
|
|
44
|
+
version = "0.2.179"
|
|
50
45
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
51
|
-
checksum = "
|
|
46
|
+
checksum = "c5a2d376baa530d1238d133232d15e239abad80d05838b4b59354e5268af431f"
|
|
52
47
|
|
|
53
48
|
[[package]]
|
|
54
49
|
name = "memoffset"
|
|
@@ -134,32 +129,31 @@ dependencies = [
|
|
|
134
129
|
|
|
135
130
|
[[package]]
|
|
136
131
|
name = "once_cell"
|
|
137
|
-
version = "1.
|
|
132
|
+
version = "1.21.3"
|
|
138
133
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
139
|
-
checksum = "
|
|
134
|
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
|
140
135
|
|
|
141
136
|
[[package]]
|
|
142
137
|
name = "portable-atomic"
|
|
143
|
-
version = "1.
|
|
138
|
+
version = "1.13.0"
|
|
144
139
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
145
|
-
checksum = "
|
|
140
|
+
checksum = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950"
|
|
146
141
|
|
|
147
142
|
[[package]]
|
|
148
143
|
name = "proc-macro2"
|
|
149
|
-
version = "1.0.
|
|
144
|
+
version = "1.0.105"
|
|
150
145
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
151
|
-
checksum = "
|
|
146
|
+
checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7"
|
|
152
147
|
dependencies = [
|
|
153
148
|
"unicode-ident",
|
|
154
149
|
]
|
|
155
150
|
|
|
156
151
|
[[package]]
|
|
157
152
|
name = "pyo3"
|
|
158
|
-
version = "0.
|
|
153
|
+
version = "0.27.2"
|
|
159
154
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
160
|
-
checksum = "
|
|
155
|
+
checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
|
|
161
156
|
dependencies = [
|
|
162
|
-
"cfg-if",
|
|
163
157
|
"indoc",
|
|
164
158
|
"libc",
|
|
165
159
|
"memoffset",
|
|
@@ -173,19 +167,18 @@ dependencies = [
|
|
|
173
167
|
|
|
174
168
|
[[package]]
|
|
175
169
|
name = "pyo3-build-config"
|
|
176
|
-
version = "0.
|
|
170
|
+
version = "0.27.2"
|
|
177
171
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
178
|
-
checksum = "
|
|
172
|
+
checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
|
|
179
173
|
dependencies = [
|
|
180
|
-
"once_cell",
|
|
181
174
|
"target-lexicon",
|
|
182
175
|
]
|
|
183
176
|
|
|
184
177
|
[[package]]
|
|
185
178
|
name = "pyo3-ffi"
|
|
186
|
-
version = "0.
|
|
179
|
+
version = "0.27.2"
|
|
187
180
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
188
|
-
checksum = "
|
|
181
|
+
checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
|
|
189
182
|
dependencies = [
|
|
190
183
|
"libc",
|
|
191
184
|
"pyo3-build-config",
|
|
@@ -193,9 +186,9 @@ dependencies = [
|
|
|
193
186
|
|
|
194
187
|
[[package]]
|
|
195
188
|
name = "pyo3-macros"
|
|
196
|
-
version = "0.
|
|
189
|
+
version = "0.27.2"
|
|
197
190
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
198
|
-
checksum = "
|
|
191
|
+
checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
|
|
199
192
|
dependencies = [
|
|
200
193
|
"proc-macro2",
|
|
201
194
|
"pyo3-macros-backend",
|
|
@@ -205,9 +198,9 @@ dependencies = [
|
|
|
205
198
|
|
|
206
199
|
[[package]]
|
|
207
200
|
name = "pyo3-macros-backend"
|
|
208
|
-
version = "0.
|
|
201
|
+
version = "0.27.2"
|
|
209
202
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
210
|
-
checksum = "
|
|
203
|
+
checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
|
|
211
204
|
dependencies = [
|
|
212
205
|
"heck",
|
|
213
206
|
"proc-macro2",
|
|
@@ -218,50 +211,50 @@ dependencies = [
|
|
|
218
211
|
|
|
219
212
|
[[package]]
|
|
220
213
|
name = "quote"
|
|
221
|
-
version = "1.0.
|
|
214
|
+
version = "1.0.43"
|
|
222
215
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
-
checksum = "
|
|
216
|
+
checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a"
|
|
224
217
|
dependencies = [
|
|
225
218
|
"proc-macro2",
|
|
226
219
|
]
|
|
227
220
|
|
|
221
|
+
[[package]]
|
|
222
|
+
name = "rustversion"
|
|
223
|
+
version = "1.0.22"
|
|
224
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
226
|
+
|
|
228
227
|
[[package]]
|
|
229
228
|
name = "smallvec"
|
|
230
|
-
version = "1.
|
|
229
|
+
version = "1.15.1"
|
|
231
230
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
-
checksum = "
|
|
231
|
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
233
232
|
|
|
234
233
|
[[package]]
|
|
235
234
|
name = "syn"
|
|
236
|
-
version = "2.0.
|
|
235
|
+
version = "2.0.113"
|
|
237
236
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
238
|
-
checksum = "
|
|
237
|
+
checksum = "678faa00651c9eb72dd2020cbdf275d92eccb2400d568e419efdd64838145cb4"
|
|
239
238
|
dependencies = [
|
|
240
239
|
"proc-macro2",
|
|
241
240
|
"quote",
|
|
242
241
|
"unicode-ident",
|
|
243
242
|
]
|
|
244
243
|
|
|
245
|
-
[[package]]
|
|
246
|
-
name = "syncpool"
|
|
247
|
-
version = "0.1.6"
|
|
248
|
-
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
249
|
-
checksum = "276c1fc00f41ad03bdcf390e81f967adfdb9c828c0a967e1c92df8050471c6bd"
|
|
250
|
-
|
|
251
244
|
[[package]]
|
|
252
245
|
name = "target-lexicon"
|
|
253
|
-
version = "0.
|
|
246
|
+
version = "0.13.4"
|
|
254
247
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
255
|
-
checksum = "
|
|
248
|
+
checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
|
|
256
249
|
|
|
257
250
|
[[package]]
|
|
258
251
|
name = "unicode-ident"
|
|
259
|
-
version = "1.0.
|
|
252
|
+
version = "1.0.22"
|
|
260
253
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
261
|
-
checksum = "
|
|
254
|
+
checksum = "9312f7c4f6ff9069b165498234ce8be658059c6728633667c526e27dc2cf1df5"
|
|
262
255
|
|
|
263
256
|
[[package]]
|
|
264
257
|
name = "unindent"
|
|
265
|
-
version = "0.2.
|
|
258
|
+
version = "0.2.4"
|
|
266
259
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
267
|
-
checksum = "
|
|
260
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
@@ -8,9 +8,7 @@ name = "bencode"
|
|
|
8
8
|
crate-type = ["cdylib"]
|
|
9
9
|
|
|
10
10
|
[dependencies]
|
|
11
|
-
bytes = "1.
|
|
12
|
-
syncpool = '0.1.6'
|
|
11
|
+
bytes = "1.11.0"
|
|
13
12
|
num = "0.4.3"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
smallvec = "1.13.2"
|
|
13
|
+
pyo3 = { version = "0.27.2", features = ['abi3-py310'] }
|
|
14
|
+
smallvec = "1.15.1"
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bencode-rs
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Classifier: Development Status :: 2 - Pre-Alpha
|
|
5
5
|
Classifier: License :: OSI Approved :: MIT License
|
|
6
6
|
Classifier: Programming Language :: Rust
|
|
7
|
+
Classifier: Programming Language :: Python
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
7
15
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
8
16
|
License-File: LICENSE
|
|
9
17
|
Summary: a bencode parser build with pyo3
|
|
10
18
|
Keywords: bittorrent,bencode,p2p
|
|
11
|
-
Requires-Python:
|
|
19
|
+
Requires-Python: >=3.10, <4
|
|
12
20
|
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
13
21
|
Project-URL: Homepage, https://github.com/trim21/bencode-rs
|
|
14
22
|
|