bencode-rs 0.0.5__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.
Files changed (40) hide show
  1. bencode_rs-0.0.8/.github/mergify.yml +8 -0
  2. bencode_rs-0.0.8/.github/renovate.json +23 -0
  3. bencode_rs-0.0.8/.github/workflows/_build_wheels.yaml +98 -0
  4. bencode_rs-0.0.8/.github/workflows/autofix.yaml +42 -0
  5. bencode_rs-0.0.8/.github/workflows/ci.yaml +188 -0
  6. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/.github/workflows/release.yaml +3 -3
  7. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/.pre-commit-config.yaml +4 -4
  8. bencode_rs-0.0.8/Cargo.lock +260 -0
  9. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/Cargo.toml +4 -6
  10. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/PKG-INFO +11 -3
  11. bencode_rs-0.0.8/pyproject.toml +50 -0
  12. bencode_rs-0.0.8/rust-toolchain.toml +4 -0
  13. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/rustfmt.toml +1 -1
  14. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/src/decode.rs +92 -59
  15. bencode_rs-0.0.8/src/encode.rs +354 -0
  16. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/src/lib.rs +7 -6
  17. bencode_rs-0.0.8/tests/bench.py +60 -0
  18. bencode_rs-0.0.8/tests/fixtures/multiple-files.torrent.bin +311 -2
  19. bencode_rs-0.0.8/tests/test_1_encode.py +243 -0
  20. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/tests/test_2_decode.py +30 -75
  21. bencode_rs-0.0.8/uv.lock +873 -0
  22. bencode_rs-0.0.5/.github/renovate.json +0 -6
  23. bencode_rs-0.0.5/.github/workflows/_build_wheels.yaml +0 -122
  24. bencode_rs-0.0.5/.github/workflows/ci.yaml +0 -78
  25. bencode_rs-0.0.5/Cargo.lock +0 -200
  26. bencode_rs-0.0.5/pyproject.toml +0 -28
  27. bencode_rs-0.0.5/requirements.txt +0 -9
  28. bencode_rs-0.0.5/src/encode.rs +0 -239
  29. bencode_rs-0.0.5/tests/test_1_encode.py +0 -159
  30. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/.coveragerc +0 -0
  31. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/.gitattributes +0 -0
  32. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/.gitignore +0 -0
  33. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/LICENSE +0 -0
  34. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/leak.py +0 -0
  35. {bencode_rs-0.0.5 → bencode_rs-0.0.8/py}/bencode_rs/__init__.py +0 -0
  36. {bencode_rs-0.0.5 → bencode_rs-0.0.8/py}/bencode_rs/__init__.pyi +0 -0
  37. {bencode_rs-0.0.5 → bencode_rs-0.0.8/py}/bencode_rs/py.typed +0 -0
  38. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/readme.md +0 -0
  39. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/tests/fixtures/56507.torrent.bin +0 -0
  40. {bencode_rs-0.0.5 → bencode_rs-0.0.8}/tests/fixtures/ubuntu-22.04.2-desktop-amd64.iso.torrent.bin +0 -0
@@ -0,0 +1,8 @@
1
+ pull_request_rules:
2
+ - name: label conflicts
3
+ conditions:
4
+ - conflict
5
+ actions:
6
+ label:
7
+ toggle:
8
+ - conflict
@@ -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
+ }
@@ -0,0 +1,98 @@
1
+ name: Reusable workflow example
2
+
3
+ on:
4
+ workflow_call:
5
+
6
+ jobs:
7
+ sdist:
8
+ runs-on: ubuntu-24.04
9
+ steps:
10
+ - uses: actions/checkout@v6
11
+ - name: Set up Python ${{ matrix.python-version }}
12
+ uses: actions/setup-python@v6
13
+ with:
14
+ python-version: "3.14.2"
15
+ - name: Build sdist
16
+ uses: PyO3/maturin-action@v1
17
+ with:
18
+ command: sdist
19
+ args: --out dist
20
+ - name: Upload sdist
21
+ uses: actions/upload-artifact@v6
22
+ with:
23
+ name: wheels-sdist
24
+ path: dist
25
+
26
+ wheel:
27
+ runs-on: ${{ matrix.platform.runner }}
28
+ strategy:
29
+ fail-fast: false
30
+ matrix:
31
+ platform:
32
+ - runner: macos-15
33
+ target: aarch64
34
+ py: arm64
35
+ manylinux: auto
36
+
37
+ - runner: windows-latest
38
+ target: x64
39
+ py: x64
40
+ manylinux: auto
41
+
42
+ - runner: ubuntu-24.04
43
+ target: x86_64
44
+ manylinux: auto
45
+ - runner: ubuntu-24.04-arm
46
+ target: aarch64
47
+ manylinux: auto
48
+ - runner: ubuntu-24.04
49
+ target: armv7
50
+ manylinux: auto
51
+ - runner: ubuntu-24.04
52
+ target: s390x
53
+ manylinux: auto
54
+ - runner: ubuntu-24.04
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
63
+
64
+ steps:
65
+ - uses: actions/checkout@v6
66
+
67
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
68
+ if: ${{ runner.os != 'Linux' }}
69
+
70
+ - uses: actions/setup-python@v6
71
+ if: ${{ runner.os != 'Linux' }}
72
+ with:
73
+ python-version: "3.14.2"
74
+ architecture: ${{ matrix.platform.py }}
75
+
76
+ - name: Build wheels
77
+ uses: PyO3/maturin-action@v1
78
+ with:
79
+ target: ${{ matrix.platform.target }}
80
+ args: --release --out dist
81
+ sccache: "true"
82
+ manylinux: ${{ matrix.platform.manylinux }}
83
+
84
+ - name: Upload wheels
85
+ uses: actions/upload-artifact@v6
86
+ with:
87
+ name: wheels-${{ runner.os }}-${{ matrix.platform.target }}
88
+ path: dist
89
+
90
+ merge-wheel-artifact:
91
+ runs-on: ubuntu-24.04
92
+ needs: ["sdist", "wheel"]
93
+ steps:
94
+ - name: Merge Artifacts
95
+ uses: actions/upload-artifact/merge@v6
96
+ with:
97
+ name: wheel
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
@@ -0,0 +1,188 @@
1
+ name: ci
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ workflow_dispatch:
8
+ push:
9
+ branches:
10
+ - master
11
+ tags-ignore:
12
+ - "*"
13
+
14
+ jobs:
15
+ build:
16
+ concurrency:
17
+ group: "${{ github.workflow }}-${{ github.ref }}"
18
+ cancel-in-progress: true
19
+ uses: ./.github/workflows/_build_wheels.yaml
20
+
21
+ cargo-fmt:
22
+ runs-on: ubuntu-24.04
23
+ steps:
24
+ - uses: actions/checkout@v6
25
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
26
+ with:
27
+ components: rustfmt,clippy
28
+ - run: cargo fmt --check --all
29
+ - run: cargo clippy
30
+
31
+ test:
32
+ strategy:
33
+ matrix:
34
+ os: ["ubuntu-24.04", "macos-15", "windows-latest"]
35
+ python-version:
36
+ - "3.10"
37
+ - "3.11"
38
+ - "3.12"
39
+ - "3.13"
40
+ - "3.14"
41
+
42
+ runs-on: "${{ matrix.os }}"
43
+
44
+ needs: [build]
45
+
46
+ steps:
47
+ - uses: actions/checkout@v6
48
+ - uses: actions/download-artifact@v7
49
+ with:
50
+ name: wheel
51
+ path: dist
52
+ - name: Set up Python ${{ matrix.python-version }}
53
+ uses: actions/setup-python@v6
54
+ with:
55
+ python-version: ${{ matrix.python-version }}
56
+
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/
68
+
69
+ - run: pytest -sv
70
+ env:
71
+ RUST_BACKTRACE: 'full'
72
+
73
+ bench-cp:
74
+ strategy:
75
+ matrix:
76
+ python-version:
77
+ - "3.10"
78
+
79
+ runs-on: "ubuntu-24.04"
80
+
81
+ steps:
82
+ - uses: actions/checkout@v6
83
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
84
+
85
+ - name: Set up Python ${{ matrix.python-version }}
86
+ uses: actions/setup-python@v6
87
+ with:
88
+ python-version: ${{ matrix.python-version }}
89
+
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
+
100
+ - run: maturin build --release --out dist
101
+ - run: uv pip install bencode-rs --no-index --find-links ./dist/
102
+
103
+ - name: Run benchmarks
104
+ uses: CodSpeedHQ/action@v4
105
+ with:
106
+ token: ${{ secrets.CODSPEED_TOKEN }}
107
+ mode: 'instrumentation'
108
+ run: python -m pytest tests/bench.py --codspeed
109
+
110
+ audit:
111
+ name: Audit
112
+ needs: [build]
113
+ runs-on: ubuntu-24.04
114
+ steps:
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"
121
+
122
+ - name: Set up uv
123
+ uses: astral-sh/setup-uv@v7
124
+ with:
125
+ enable-cache: true
126
+ activate-environment: true
127
+
128
+ - run: uv sync --dev
129
+
130
+ - uses: actions/download-artifact@v7
131
+ with:
132
+ name: wheel
133
+ path: dist
134
+
135
+ - run: abi3audit --verbose dist/*.whl
136
+ - run: twine check --strict dist/*
137
+
138
+
139
+ coverage:
140
+ name: Coverage for ${{ matrix.python-version }}
141
+ strategy:
142
+ matrix:
143
+ python-version:
144
+ - "3.10"
145
+ - "3.11"
146
+ - "3.12"
147
+ - "3.13"
148
+ - "3.14"
149
+
150
+ runs-on: ubuntu-24.04
151
+ steps:
152
+ - uses: actions/checkout@v6
153
+ - name: Set up Python ${{ matrix.python-version }}
154
+ uses: actions/setup-python@v6
155
+ with:
156
+ python-version: "${{ matrix.python-version }}"
157
+
158
+ - name: Set up uv
159
+ uses: astral-sh/setup-uv@v7
160
+ with:
161
+ enable-cache: true
162
+ activate-environment: true
163
+
164
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
165
+ with:
166
+ components: llvm-tools
167
+
168
+ - name: Install cargo-llvm-cov
169
+ uses: taiki-e/install-action@cargo-llvm-cov
170
+
171
+ - run: uv sync --dev
172
+
173
+ - name: Run coverage
174
+ run: |
175
+ set -euxo pipefail
176
+ source <(cargo llvm-cov show-env --export-prefix)
177
+ export CARGO_TARGET_DIR=$CARGO_LLVM_COV_TARGET_DIR
178
+ cargo llvm-cov clean --workspace
179
+ cargo build
180
+ ls target/debug -ahl
181
+ cp target/debug/libbencode.so py/bencode_rs/_bencode.so
182
+ PYTHONPATH=py pytest tests
183
+ cargo llvm-cov report --lcov --output-path coverage.lcov
184
+
185
+ - uses: codecov/codecov-action@v5
186
+ with:
187
+ files: coverage.lcov
188
+ token: '${{ secrets.CODECOV_TOKEN }}'
@@ -12,14 +12,14 @@ jobs:
12
12
  upload_all:
13
13
  name: Upload wheels to PyPI
14
14
  needs: [build]
15
- runs-on: ubuntu-latest
15
+ runs-on: ubuntu-24.04
16
16
  environment: pypi
17
17
  permissions:
18
18
  id-token: write
19
19
  steps:
20
- - uses: actions/download-artifact@v4.1.8
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.11.0
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.14.0
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: v5.0.0
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: 24.10.0
25
+ rev: 25.12.0
26
26
  hooks:
27
27
  - id: black
@@ -0,0 +1,260 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "autocfg"
7
+ version = "1.5.0"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
10
+
11
+ [[package]]
12
+ name = "bencode"
13
+ version = "0.0.0"
14
+ dependencies = [
15
+ "bytes",
16
+ "num",
17
+ "pyo3",
18
+ "smallvec",
19
+ ]
20
+
21
+ [[package]]
22
+ name = "bytes"
23
+ version = "1.11.0"
24
+ source = "registry+https://github.com/rust-lang/crates.io-index"
25
+ checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3"
26
+
27
+ [[package]]
28
+ name = "heck"
29
+ version = "0.5.0"
30
+ source = "registry+https://github.com/rust-lang/crates.io-index"
31
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
32
+
33
+ [[package]]
34
+ name = "indoc"
35
+ version = "2.0.7"
36
+ source = "registry+https://github.com/rust-lang/crates.io-index"
37
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
38
+ dependencies = [
39
+ "rustversion",
40
+ ]
41
+
42
+ [[package]]
43
+ name = "libc"
44
+ version = "0.2.179"
45
+ source = "registry+https://github.com/rust-lang/crates.io-index"
46
+ checksum = "c5a2d376baa530d1238d133232d15e239abad80d05838b4b59354e5268af431f"
47
+
48
+ [[package]]
49
+ name = "memoffset"
50
+ version = "0.9.1"
51
+ source = "registry+https://github.com/rust-lang/crates.io-index"
52
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
53
+ dependencies = [
54
+ "autocfg",
55
+ ]
56
+
57
+ [[package]]
58
+ name = "num"
59
+ version = "0.4.3"
60
+ source = "registry+https://github.com/rust-lang/crates.io-index"
61
+ checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
62
+ dependencies = [
63
+ "num-bigint",
64
+ "num-complex",
65
+ "num-integer",
66
+ "num-iter",
67
+ "num-rational",
68
+ "num-traits",
69
+ ]
70
+
71
+ [[package]]
72
+ name = "num-bigint"
73
+ version = "0.4.6"
74
+ source = "registry+https://github.com/rust-lang/crates.io-index"
75
+ checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
76
+ dependencies = [
77
+ "num-integer",
78
+ "num-traits",
79
+ ]
80
+
81
+ [[package]]
82
+ name = "num-complex"
83
+ version = "0.4.6"
84
+ source = "registry+https://github.com/rust-lang/crates.io-index"
85
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
86
+ dependencies = [
87
+ "num-traits",
88
+ ]
89
+
90
+ [[package]]
91
+ name = "num-integer"
92
+ version = "0.1.46"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
95
+ dependencies = [
96
+ "num-traits",
97
+ ]
98
+
99
+ [[package]]
100
+ name = "num-iter"
101
+ version = "0.1.45"
102
+ source = "registry+https://github.com/rust-lang/crates.io-index"
103
+ checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"
104
+ dependencies = [
105
+ "autocfg",
106
+ "num-integer",
107
+ "num-traits",
108
+ ]
109
+
110
+ [[package]]
111
+ name = "num-rational"
112
+ version = "0.4.2"
113
+ source = "registry+https://github.com/rust-lang/crates.io-index"
114
+ checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
115
+ dependencies = [
116
+ "num-bigint",
117
+ "num-integer",
118
+ "num-traits",
119
+ ]
120
+
121
+ [[package]]
122
+ name = "num-traits"
123
+ version = "0.2.19"
124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
125
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
126
+ dependencies = [
127
+ "autocfg",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "once_cell"
132
+ version = "1.21.3"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
135
+
136
+ [[package]]
137
+ name = "portable-atomic"
138
+ version = "1.13.0"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950"
141
+
142
+ [[package]]
143
+ name = "proc-macro2"
144
+ version = "1.0.105"
145
+ source = "registry+https://github.com/rust-lang/crates.io-index"
146
+ checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7"
147
+ dependencies = [
148
+ "unicode-ident",
149
+ ]
150
+
151
+ [[package]]
152
+ name = "pyo3"
153
+ version = "0.27.2"
154
+ source = "registry+https://github.com/rust-lang/crates.io-index"
155
+ checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
156
+ dependencies = [
157
+ "indoc",
158
+ "libc",
159
+ "memoffset",
160
+ "once_cell",
161
+ "portable-atomic",
162
+ "pyo3-build-config",
163
+ "pyo3-ffi",
164
+ "pyo3-macros",
165
+ "unindent",
166
+ ]
167
+
168
+ [[package]]
169
+ name = "pyo3-build-config"
170
+ version = "0.27.2"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
173
+ dependencies = [
174
+ "target-lexicon",
175
+ ]
176
+
177
+ [[package]]
178
+ name = "pyo3-ffi"
179
+ version = "0.27.2"
180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
181
+ checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
182
+ dependencies = [
183
+ "libc",
184
+ "pyo3-build-config",
185
+ ]
186
+
187
+ [[package]]
188
+ name = "pyo3-macros"
189
+ version = "0.27.2"
190
+ source = "registry+https://github.com/rust-lang/crates.io-index"
191
+ checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
192
+ dependencies = [
193
+ "proc-macro2",
194
+ "pyo3-macros-backend",
195
+ "quote",
196
+ "syn",
197
+ ]
198
+
199
+ [[package]]
200
+ name = "pyo3-macros-backend"
201
+ version = "0.27.2"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
204
+ dependencies = [
205
+ "heck",
206
+ "proc-macro2",
207
+ "pyo3-build-config",
208
+ "quote",
209
+ "syn",
210
+ ]
211
+
212
+ [[package]]
213
+ name = "quote"
214
+ version = "1.0.43"
215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
216
+ checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a"
217
+ dependencies = [
218
+ "proc-macro2",
219
+ ]
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
+
227
+ [[package]]
228
+ name = "smallvec"
229
+ version = "1.15.1"
230
+ source = "registry+https://github.com/rust-lang/crates.io-index"
231
+ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
232
+
233
+ [[package]]
234
+ name = "syn"
235
+ version = "2.0.113"
236
+ source = "registry+https://github.com/rust-lang/crates.io-index"
237
+ checksum = "678faa00651c9eb72dd2020cbdf275d92eccb2400d568e419efdd64838145cb4"
238
+ dependencies = [
239
+ "proc-macro2",
240
+ "quote",
241
+ "unicode-ident",
242
+ ]
243
+
244
+ [[package]]
245
+ name = "target-lexicon"
246
+ version = "0.13.4"
247
+ source = "registry+https://github.com/rust-lang/crates.io-index"
248
+ checksum = "b1dd07eb858a2067e2f3c7155d54e929265c264e6f37efe3ee7a8d1b5a1dd0ba"
249
+
250
+ [[package]]
251
+ name = "unicode-ident"
252
+ version = "1.0.22"
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"
259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
260
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
@@ -8,9 +8,7 @@ name = "bencode"
8
8
  crate-type = ["cdylib"]
9
9
 
10
10
  [dependencies]
11
- bytes = "1.6.0"
12
- syncpool = '0.1.6'
13
- itoa = "1.0.11"
14
- once_cell = "1.19.0"
15
- pyo3 = { version = "0.22.0", features = ['abi3-py39'] }
16
- smallvec = "1.13.2"
11
+ bytes = "1.11.0"
12
+ num = "0.4.3"
13
+ pyo3 = { version = "0.27.2", features = ['abi3-py310'] }
14
+ smallvec = "1.15.1"
@@ -1,14 +1,22 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: bencode-rs
3
- Version: 0.0.5
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: ~=3.9
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