bencode-rs 0.0.5__tar.gz → 0.0.7__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 (34) hide show
  1. bencode_rs-0.0.7/.github/renovate.json +13 -0
  2. bencode_rs-0.0.7/.github/workflows/_build_wheels.yaml +95 -0
  3. bencode_rs-0.0.7/.github/workflows/ci.yaml +159 -0
  4. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/.github/workflows/release.yaml +2 -2
  5. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/Cargo.lock +103 -36
  6. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/Cargo.toml +4 -4
  7. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/PKG-INFO +3 -3
  8. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/pyproject.toml +4 -3
  9. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/requirements.txt +3 -2
  10. bencode_rs-0.0.7/rust-toolchain.toml +4 -0
  11. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/rustfmt.toml +1 -1
  12. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/src/decode.rs +87 -51
  13. bencode_rs-0.0.7/src/encode.rs +350 -0
  14. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/src/lib.rs +7 -6
  15. bencode_rs-0.0.7/tests/bench.py +45 -0
  16. bencode_rs-0.0.7/tests/test_1_encode.py +243 -0
  17. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/tests/test_2_decode.py +30 -75
  18. bencode_rs-0.0.5/.github/renovate.json +0 -6
  19. bencode_rs-0.0.5/.github/workflows/_build_wheels.yaml +0 -122
  20. bencode_rs-0.0.5/.github/workflows/ci.yaml +0 -78
  21. bencode_rs-0.0.5/src/encode.rs +0 -239
  22. bencode_rs-0.0.5/tests/test_1_encode.py +0 -159
  23. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/.coveragerc +0 -0
  24. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/.gitattributes +0 -0
  25. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/.gitignore +0 -0
  26. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/.pre-commit-config.yaml +0 -0
  27. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/LICENSE +0 -0
  28. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/leak.py +0 -0
  29. {bencode_rs-0.0.5 → bencode_rs-0.0.7/py}/bencode_rs/__init__.py +0 -0
  30. {bencode_rs-0.0.5 → bencode_rs-0.0.7/py}/bencode_rs/__init__.pyi +0 -0
  31. {bencode_rs-0.0.5 → bencode_rs-0.0.7/py}/bencode_rs/py.typed +0 -0
  32. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/readme.md +0 -0
  33. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/tests/fixtures/56507.torrent.bin +0 -0
  34. {bencode_rs-0.0.5 → bencode_rs-0.0.7}/tests/fixtures/ubuntu-22.04.2-desktop-amd64.iso.torrent.bin +0 -0
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
3
+ "extends": [
4
+ "local>trim21/renovate-config"
5
+ ],
6
+ "lockFileMaintenance": {
7
+ "enabled": true
8
+ },
9
+ "cargo": {
10
+ "enabled": true
11
+ },
12
+ "rangeStrategy": "bump"
13
+ }
@@ -0,0 +1,95 @@
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@v4
11
+ - name: Set up Python ${{ matrix.python-version }}
12
+ uses: actions/setup-python@v5
13
+ with:
14
+ python-version: "3.x"
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@v4
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-13
33
+ target: x86_64
34
+ py: x64
35
+
36
+ - runner: macos-14
37
+ target: aarch64
38
+ py: arm64
39
+
40
+ - runner: windows-latest
41
+ target: x64
42
+ py: x64
43
+
44
+ - runner: windows-latest
45
+ target: x86
46
+ py: x86
47
+
48
+ - runner: ubuntu-24.04
49
+ target: x86_64
50
+ - runner: ubuntu-24.04
51
+ target: x86
52
+ - runner: ubuntu-24.04
53
+ target: aarch64
54
+ - runner: ubuntu-24.04
55
+ target: armv7
56
+ - runner: ubuntu-24.04
57
+ target: s390x
58
+ - runner: ubuntu-24.04
59
+ target: ppc64le
60
+
61
+ steps:
62
+ - uses: actions/checkout@v4
63
+
64
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
65
+ if: ${{ runner.os != 'Linux' }}
66
+
67
+ - uses: actions/setup-python@v5
68
+ if: ${{ runner.os != 'Linux' }}
69
+ with:
70
+ python-version: "3.x"
71
+ architecture: ${{ matrix.platform.py }}
72
+
73
+ - name: Build wheels
74
+ uses: PyO3/maturin-action@v1
75
+ with:
76
+ target: ${{ matrix.platform.target }}
77
+ args: --release --out dist
78
+ sccache: "true"
79
+ manylinux: auto
80
+
81
+ - name: Upload wheels
82
+ uses: actions/upload-artifact@v4
83
+ with:
84
+ name: wheels-${{ runner.os }}-${{ matrix.platform.target }}
85
+ path: dist
86
+
87
+ merge-wheel-artifact:
88
+ runs-on: ubuntu-24.04
89
+ needs: ["sdist", "wheel"]
90
+ steps:
91
+ - name: Merge Artifacts
92
+ uses: actions/upload-artifact/merge@v4
93
+ with:
94
+ name: wheel
95
+ pattern: wheels-*
@@ -0,0 +1,159 @@
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@v4
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-13", "macos-14", "windows-latest"]
35
+ python-version:
36
+ - "3.10"
37
+ - "3.11"
38
+ - "3.12"
39
+ - "3.13"
40
+
41
+ runs-on: "${{ matrix.os }}"
42
+
43
+ needs: [build]
44
+
45
+ steps:
46
+ - uses: actions/checkout@v4
47
+ - uses: actions/download-artifact@v4.1.8
48
+ with:
49
+ name: wheel
50
+ path: dist
51
+
52
+ - name: Set up Python ${{ matrix.python-version }}
53
+ uses: actions/setup-python@v5
54
+ with:
55
+ python-version: ${{ matrix.python-version }}
56
+ cache: "pip" # caching pip dependencies
57
+
58
+ - run: python -m pip install -U pip
59
+ - run: pip install bencode-rs --no-index --find-link ./dist/
60
+ - run: pip install -r requirements.txt
61
+
62
+ - run: pytest -sv
63
+ env:
64
+ RUST_BACKTRACE: 'full'
65
+
66
+ bench-cp:
67
+ strategy:
68
+ matrix:
69
+ python-version:
70
+ - "3.10"
71
+
72
+ runs-on: "ubuntu-24.04"
73
+
74
+ steps:
75
+ - uses: actions/checkout@v4
76
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
77
+
78
+ - name: Set up Python ${{ matrix.python-version }}
79
+ uses: actions/setup-python@v5
80
+ with:
81
+ python-version: ${{ matrix.python-version }}
82
+ cache: "pip"
83
+
84
+ - run: pip install -r requirements.txt
85
+ - run: maturin build --release --out dist
86
+ - run: pip install bencode-rs --no-index --find-links ./dist/
87
+
88
+ - name: Run benchmarks
89
+ uses: CodSpeedHQ/action@v3
90
+ with:
91
+ token: ${{ secrets.CODSPEED_TOKEN }}
92
+ run: python -m pytest tests/bench.py --codspeed
93
+
94
+ audit:
95
+ name: Audit
96
+ needs: [build]
97
+ runs-on: ubuntu-24.04
98
+ steps:
99
+ - uses: actions/checkout@v4
100
+
101
+ - uses: actions/setup-python@v5
102
+ with:
103
+ python-version: "3.x"
104
+ cache: "pip" # caching pip dependencies
105
+
106
+ - run: pip install -r requirements.txt
107
+
108
+ - uses: actions/download-artifact@v4
109
+ with:
110
+ name: wheel
111
+ path: dist
112
+
113
+ - run: abi3audit --verbose dist/*.whl
114
+ - run: pipx run twine check --strict dist/*
115
+
116
+
117
+ coverage:
118
+ name: Coverage for ${{ matrix.python-version }}
119
+ strategy:
120
+ matrix:
121
+ python-version:
122
+ - "3.10"
123
+ - "3.11"
124
+ - "3.12"
125
+ - "3.13"
126
+
127
+ runs-on: ubuntu-24.04
128
+ steps:
129
+ - uses: actions/checkout@v4
130
+ - uses: actions/setup-python@v5
131
+ with:
132
+ python-version: "${{ matrix.python-version }}"
133
+ cache: "pip"
134
+
135
+ - uses: actions-rust-lang/setup-rust-toolchain@v1
136
+ with:
137
+ components: llvm-tools
138
+
139
+ - name: Install cargo-llvm-cov
140
+ uses: taiki-e/install-action@cargo-llvm-cov
141
+
142
+ - run: pip install -r requirements.txt
143
+
144
+ - name: Run coverage
145
+ run: |
146
+ set -euxo pipefail
147
+ source <(cargo llvm-cov show-env --export-prefix)
148
+ export CARGO_TARGET_DIR=$CARGO_LLVM_COV_TARGET_DIR
149
+ cargo llvm-cov clean --workspace
150
+ cargo build
151
+ ls target/debug -ahl
152
+ cp target/debug/libbencode.so py/bencode_rs/_bencode.so
153
+ PYTHONPATH=py pytest tests
154
+ cargo llvm-cov report --lcov --output-path coverage.lcov
155
+
156
+ - uses: codecov/codecov-action@v5
157
+ with:
158
+ files: coverage.lcov
159
+ 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-latest
15
+ runs-on: ubuntu-24.04
16
16
  environment: pypi
17
17
  permissions:
18
18
  id-token: write
@@ -22,4 +22,4 @@ jobs:
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.12.3
@@ -1,19 +1,19 @@
1
1
  # This file is automatically @generated by Cargo.
2
2
  # It is not intended for manual editing.
3
- version = 3
3
+ version = 4
4
4
 
5
5
  [[package]]
6
6
  name = "autocfg"
7
- version = "1.3.0"
7
+ version = "1.4.0"
8
8
  source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
9
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
10
10
 
11
11
  [[package]]
12
12
  name = "bencode"
13
13
  version = "0.0.0"
14
14
  dependencies = [
15
15
  "bytes",
16
- "itoa",
16
+ "num",
17
17
  "once_cell",
18
18
  "pyo3",
19
19
  "smallvec",
@@ -22,9 +22,9 @@ dependencies = [
22
22
 
23
23
  [[package]]
24
24
  name = "bytes"
25
- version = "1.8.0"
25
+ version = "1.9.0"
26
26
  source = "registry+https://github.com/rust-lang/crates.io-index"
27
- checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da"
27
+ checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b"
28
28
 
29
29
  [[package]]
30
30
  name = "cfg-if"
@@ -44,17 +44,11 @@ version = "2.0.5"
44
44
  source = "registry+https://github.com/rust-lang/crates.io-index"
45
45
  checksum = "b248f5224d1d606005e02c97f5aa4e88eeb230488bcc03bc9ca4d7991399f2b5"
46
46
 
47
- [[package]]
48
- name = "itoa"
49
- version = "1.0.11"
50
- source = "registry+https://github.com/rust-lang/crates.io-index"
51
- checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
52
-
53
47
  [[package]]
54
48
  name = "libc"
55
- version = "0.2.155"
49
+ version = "0.2.169"
56
50
  source = "registry+https://github.com/rust-lang/crates.io-index"
57
- checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c"
51
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
58
52
 
59
53
  [[package]]
60
54
  name = "memoffset"
@@ -65,6 +59,79 @@ dependencies = [
65
59
  "autocfg",
66
60
  ]
67
61
 
62
+ [[package]]
63
+ name = "num"
64
+ version = "0.4.3"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
67
+ dependencies = [
68
+ "num-bigint",
69
+ "num-complex",
70
+ "num-integer",
71
+ "num-iter",
72
+ "num-rational",
73
+ "num-traits",
74
+ ]
75
+
76
+ [[package]]
77
+ name = "num-bigint"
78
+ version = "0.4.6"
79
+ source = "registry+https://github.com/rust-lang/crates.io-index"
80
+ checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
81
+ dependencies = [
82
+ "num-integer",
83
+ "num-traits",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "num-complex"
88
+ version = "0.4.6"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
91
+ dependencies = [
92
+ "num-traits",
93
+ ]
94
+
95
+ [[package]]
96
+ name = "num-integer"
97
+ version = "0.1.46"
98
+ source = "registry+https://github.com/rust-lang/crates.io-index"
99
+ checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
100
+ dependencies = [
101
+ "num-traits",
102
+ ]
103
+
104
+ [[package]]
105
+ name = "num-iter"
106
+ version = "0.1.45"
107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
108
+ checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"
109
+ dependencies = [
110
+ "autocfg",
111
+ "num-integer",
112
+ "num-traits",
113
+ ]
114
+
115
+ [[package]]
116
+ name = "num-rational"
117
+ version = "0.4.2"
118
+ source = "registry+https://github.com/rust-lang/crates.io-index"
119
+ checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
120
+ dependencies = [
121
+ "num-bigint",
122
+ "num-integer",
123
+ "num-traits",
124
+ ]
125
+
126
+ [[package]]
127
+ name = "num-traits"
128
+ version = "0.2.19"
129
+ source = "registry+https://github.com/rust-lang/crates.io-index"
130
+ checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
131
+ dependencies = [
132
+ "autocfg",
133
+ ]
134
+
68
135
  [[package]]
69
136
  name = "once_cell"
70
137
  version = "1.20.2"
@@ -73,24 +140,24 @@ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
73
140
 
74
141
  [[package]]
75
142
  name = "portable-atomic"
76
- version = "1.6.0"
143
+ version = "1.10.0"
77
144
  source = "registry+https://github.com/rust-lang/crates.io-index"
78
- checksum = "7170ef9988bc169ba16dd36a7fa041e5c4cbeb6a35b76d4c03daded371eae7c0"
145
+ checksum = "280dc24453071f1b63954171985a0b0d30058d287960968b9b2aca264c8d4ee6"
79
146
 
80
147
  [[package]]
81
148
  name = "proc-macro2"
82
- version = "1.0.83"
149
+ version = "1.0.92"
83
150
  source = "registry+https://github.com/rust-lang/crates.io-index"
84
- checksum = "0b33eb56c327dec362a9e55b3ad14f9d2f0904fb5a5b03b513ab5465399e9f43"
151
+ checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0"
85
152
  dependencies = [
86
153
  "unicode-ident",
87
154
  ]
88
155
 
89
156
  [[package]]
90
157
  name = "pyo3"
91
- version = "0.22.5"
158
+ version = "0.23.3"
92
159
  source = "registry+https://github.com/rust-lang/crates.io-index"
93
- checksum = "3d922163ba1f79c04bc49073ba7b32fd5a8d3b76a87c955921234b8e77333c51"
160
+ checksum = "e484fd2c8b4cb67ab05a318f1fd6fa8f199fcc30819f08f07d200809dba26c15"
94
161
  dependencies = [
95
162
  "cfg-if",
96
163
  "indoc",
@@ -106,9 +173,9 @@ dependencies = [
106
173
 
107
174
  [[package]]
108
175
  name = "pyo3-build-config"
109
- version = "0.22.5"
176
+ version = "0.23.3"
110
177
  source = "registry+https://github.com/rust-lang/crates.io-index"
111
- checksum = "bc38c5feeb496c8321091edf3d63e9a6829eab4b863b4a6a65f26f3e9cc6b179"
178
+ checksum = "dc0e0469a84f208e20044b98965e1561028180219e35352a2afaf2b942beff3b"
112
179
  dependencies = [
113
180
  "once_cell",
114
181
  "target-lexicon",
@@ -116,9 +183,9 @@ dependencies = [
116
183
 
117
184
  [[package]]
118
185
  name = "pyo3-ffi"
119
- version = "0.22.5"
186
+ version = "0.23.3"
120
187
  source = "registry+https://github.com/rust-lang/crates.io-index"
121
- checksum = "94845622d88ae274d2729fcefc850e63d7a3ddff5e3ce11bd88486db9f1d357d"
188
+ checksum = "eb1547a7f9966f6f1a0f0227564a9945fe36b90da5a93b3933fc3dc03fae372d"
122
189
  dependencies = [
123
190
  "libc",
124
191
  "pyo3-build-config",
@@ -126,9 +193,9 @@ dependencies = [
126
193
 
127
194
  [[package]]
128
195
  name = "pyo3-macros"
129
- version = "0.22.5"
196
+ version = "0.23.3"
130
197
  source = "registry+https://github.com/rust-lang/crates.io-index"
131
- checksum = "e655aad15e09b94ffdb3ce3d217acf652e26bbc37697ef012f5e5e348c716e5e"
198
+ checksum = "fdb6da8ec6fa5cedd1626c886fc8749bdcbb09424a86461eb8cdf096b7c33257"
132
199
  dependencies = [
133
200
  "proc-macro2",
134
201
  "pyo3-macros-backend",
@@ -138,9 +205,9 @@ dependencies = [
138
205
 
139
206
  [[package]]
140
207
  name = "pyo3-macros-backend"
141
- version = "0.22.5"
208
+ version = "0.23.3"
142
209
  source = "registry+https://github.com/rust-lang/crates.io-index"
143
- checksum = "ae1e3f09eecd94618f60a455a23def79f79eba4dc561a97324bf9ac8c6df30ce"
210
+ checksum = "38a385202ff5a92791168b1136afae5059d3ac118457bb7bc304c197c2d33e7d"
144
211
  dependencies = [
145
212
  "heck",
146
213
  "proc-macro2",
@@ -151,9 +218,9 @@ dependencies = [
151
218
 
152
219
  [[package]]
153
220
  name = "quote"
154
- version = "1.0.36"
221
+ version = "1.0.37"
155
222
  source = "registry+https://github.com/rust-lang/crates.io-index"
156
- checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7"
223
+ checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
157
224
  dependencies = [
158
225
  "proc-macro2",
159
226
  ]
@@ -166,9 +233,9 @@ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
166
233
 
167
234
  [[package]]
168
235
  name = "syn"
169
- version = "2.0.66"
236
+ version = "2.0.91"
170
237
  source = "registry+https://github.com/rust-lang/crates.io-index"
171
- checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5"
238
+ checksum = "d53cbcb5a243bd33b7858b1d7f4aca2153490815872d86d955d6ea29f743c035"
172
239
  dependencies = [
173
240
  "proc-macro2",
174
241
  "quote",
@@ -183,15 +250,15 @@ checksum = "276c1fc00f41ad03bdcf390e81f967adfdb9c828c0a967e1c92df8050471c6bd"
183
250
 
184
251
  [[package]]
185
252
  name = "target-lexicon"
186
- version = "0.12.14"
253
+ version = "0.12.16"
187
254
  source = "registry+https://github.com/rust-lang/crates.io-index"
188
- checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f"
255
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
189
256
 
190
257
  [[package]]
191
258
  name = "unicode-ident"
192
- version = "1.0.12"
259
+ version = "1.0.14"
193
260
  source = "registry+https://github.com/rust-lang/crates.io-index"
194
- checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
261
+ checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
195
262
 
196
263
  [[package]]
197
264
  name = "unindent"
@@ -8,9 +8,9 @@ name = "bencode"
8
8
  crate-type = ["cdylib"]
9
9
 
10
10
  [dependencies]
11
- bytes = "1.6.0"
11
+ bytes = "1.9.0"
12
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'] }
13
+ num = "0.4.3"
14
+ once_cell = "1.20.2"
15
+ pyo3 = { version = "0.23.2", features = ['abi3-py310'] }
16
16
  smallvec = "1.13.2"
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: bencode-rs
3
- Version: 0.0.5
3
+ Version: 0.0.7
4
4
  Classifier: Development Status :: 2 - Pre-Alpha
5
5
  Classifier: License :: OSI Approved :: MIT License
6
6
  Classifier: Programming Language :: Rust
@@ -8,7 +8,7 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
8
8
  License-File: LICENSE
9
9
  Summary: a bencode parser build with pyo3
10
10
  Keywords: bittorrent,bencode,p2p
11
- Requires-Python: ~=3.9
11
+ Requires-Python: ~=3.10
12
12
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
13
13
  Project-URL: Homepage, https://github.com/trim21/bencode-rs
14
14
 
@@ -1,11 +1,11 @@
1
1
  [build-system]
2
- requires = ["maturin>=1.5,<2.0"]
2
+ requires = ["maturin>=1.7.8,<2.0"]
3
3
  build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "bencode-rs"
7
- version = "0.0.5"
8
- requires-python = "~=3.9"
7
+ version = "0.0.7"
8
+ requires-python = "~=3.10"
9
9
  description = "a bencode parser build with pyo3"
10
10
  readme = "readme.md"
11
11
  classifiers = [
@@ -26,3 +26,4 @@ Homepage = 'https://github.com/trim21/bencode-rs'
26
26
  [tool.maturin]
27
27
  features = ["pyo3/extension-module"]
28
28
  module-name = "bencode_rs._bencode"
29
+ python-source = "py"
@@ -1,9 +1,10 @@
1
1
  # build
2
- maturin>=1.5,<2.0
2
+ maturin>=1.7.8,<2.0
3
3
  abi3audit
4
+ pip
4
5
  # lint
5
6
  pre-commit
6
7
  # testing
7
8
  pytest
8
- pytest-benchmark
9
+ pytest-codspeed==3.1.0
9
10
  pytest-github-actions-annotate-failures==0.2.0
@@ -0,0 +1,4 @@
1
+ [toolchain]
2
+ channel = "1.83"
3
+ components = ["rustfmt", "rustc"]
4
+ profile = "minimal"
@@ -1,5 +1,5 @@
1
1
  reorder_imports = true
2
- match_block_trailing_comma = true
2
+ match_block_trailing_comma = false
3
3
  newline_style = 'Unix'
4
4
  use_field_init_shorthand = true
5
5