unicode-segmentation-rs 0.2.4__tar.gz → 0.3.1__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 (37) hide show
  1. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.editorconfig +9 -0
  2. unicode_segmentation_rs-0.3.1/.github/actions/pre-commit-setup/action.yml +25 -0
  3. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/release.yml +1 -0
  4. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/workflows/ci.yml +38 -53
  5. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/workflows/dependency-review.yml +2 -2
  6. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/workflows/pre-commit.yml +5 -18
  7. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/workflows/pull_requests.yaml +5 -9
  8. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.pre-commit-config.yaml +8 -13
  9. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/Cargo.lock +30 -56
  10. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/Cargo.toml +5 -4
  11. unicode_segmentation_rs-0.3.1/LICENSE +201 -0
  12. unicode_segmentation_rs-0.3.1/LICENSES/Apache-2.0.txt +201 -0
  13. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/PKG-INFO +37 -4
  14. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/README.md +35 -2
  15. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/REUSE.toml +2 -2
  16. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/pyproject.toml +19 -5
  17. unicode_segmentation_rs-0.3.1/src/lib.rs +303 -0
  18. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/tests/test_gettext_wrap.py +1 -1
  19. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/tests/test_readme_examples.py +32 -1
  20. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/tests/test_unicode_segmentation.py +88 -1
  21. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/unicode_segmentation_rs.pyi +3 -1
  22. unicode_segmentation_rs-0.2.4/.markdownlint.yml +0 -18
  23. unicode_segmentation_rs-0.2.4/LICENSE +0 -21
  24. unicode_segmentation_rs-0.2.4/LICENSES/MIT.txt +0 -18
  25. unicode_segmentation_rs-0.2.4/src/lib.rs +0 -241
  26. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/FUNDING.yml +0 -0
  27. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  28. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  29. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  30. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  31. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/PULL_REQUEST_TEMPLATE.md.license +0 -0
  32. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/renovate.json +0 -0
  33. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.github/renovate.json.license +0 -0
  34. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.gitignore +0 -0
  35. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/.yamllint.yml +0 -0
  36. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/LICENSES/CC0-1.0.txt +0 -0
  37. {unicode_segmentation_rs-0.2.4 → unicode_segmentation_rs-0.3.1}/SECURITY.md +0 -0
@@ -41,3 +41,12 @@ simplify = true
41
41
 
42
42
  [*.{kt,kts}]
43
43
  indent_size = 4
44
+
45
+ # ktlint configuration
46
+ ktlint_code_style = android_studio
47
+ ktlint_function_naming_ignore_when_annotated_with = Composable
48
+ ktlint_standard_class-signature = disabled
49
+ ktlint_standard_function-expression-body = disabled
50
+ ktlint_standard_mixed-condition-operators = disabled
51
+ ktlint_standard_package-name = disabled
52
+ ktlint_standard_property-naming = disabled
@@ -0,0 +1,25 @@
1
+ # Copyright © Michal Čihař <michal@weblate.org>
2
+ #
3
+ # SPDX-License-Identifier: CC0-1.0
4
+
5
+ name: pre-commit setup
6
+ description: Prepare pre-commit environment
7
+
8
+ runs:
9
+ using: composite
10
+ steps:
11
+ - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
12
+ with:
13
+ path: |
14
+ ~/.cache/prek
15
+ ~/.cache/kingfisher
16
+ key: ${{ runner.os }}-${{ runner.arch }}-prek-${{ hashFiles('.pre-commit-config.yaml') }}
17
+ restore-keys: |
18
+ ${{ runner.os }}-${{ runner.arch }}-prek-
19
+ - name: Setup Python
20
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
21
+ with:
22
+ python-version: '3.14'
23
+ - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
24
+ with:
25
+ version: 0.11.32
@@ -20,3 +20,4 @@ changelog:
20
20
  - title: Translation updates
21
21
  authors:
22
22
  - weblate
23
+ - hosted-weblate[bot]
@@ -1,6 +1,6 @@
1
1
  # Copyright © Michal Čihař <michal@weblate.org>
2
2
  #
3
- # SPDX-License-Identifier: MIT
3
+ # SPDX-License-Identifier: Apache-2.0
4
4
 
5
5
  name: CI
6
6
 
@@ -38,20 +38,20 @@ jobs:
38
38
  python-version: '3.14'
39
39
  name: Tests, Python ${{ matrix.python-version }}, ${{ matrix.os }}
40
40
  steps:
41
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
41
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
42
42
  with:
43
43
  persist-credentials: false
44
44
  - name: Set up Python ${{ matrix.python-version }}
45
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
45
+ uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
46
46
  id: setup_python
47
47
  with:
48
48
  python-version: ${{ matrix.python-version }}
49
- - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 # zizmor: ignore[cache-poisoning]
49
+ - uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 # zizmor: ignore[cache-poisoning]
50
50
  # The cache is stored only on main branch and not used for publishing
51
51
  with:
52
52
  save-cache: ${{ github.ref == 'refs/heads/main' }}
53
53
  cache-suffix: ${{ steps.setup_python.outputs.python-version }}
54
- version: 0.11.6
54
+ version: 0.11.32
55
55
  activate-environment: 'true'
56
56
  - run: uv sync
57
57
  - name: Run tests
@@ -77,7 +77,7 @@ jobs:
77
77
  - runner: ubuntu-latest
78
78
  target: ppc64le
79
79
  steps:
80
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
80
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
81
81
  with:
82
82
  persist-credentials: false
83
83
  - name: Build wheels
@@ -95,15 +95,8 @@ jobs:
95
95
  args: --release --out dist -i python3.14t
96
96
  sccache: false
97
97
  manylinux: auto
98
- - name: Build free-threaded wheels
99
- uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
100
- with:
101
- target: ${{ matrix.platform.target }}
102
- args: --release --out dist -i python3.13t
103
- sccache: false
104
- manylinux: auto
105
98
  - name: Upload wheels
106
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
99
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
107
100
  with:
108
101
  name: wheels-linux-${{ matrix.platform.target }}
109
102
  path: dist
@@ -123,7 +116,7 @@ jobs:
123
116
  - runner: ubuntu-latest
124
117
  target: armv7
125
118
  steps:
126
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
119
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
127
120
  with:
128
121
  persist-credentials: false
129
122
  - name: Build wheels
@@ -134,14 +127,6 @@ jobs:
134
127
  sccache: false
135
128
  manylinux: musllinux_1_2
136
129
  - name: Build free-threaded wheels
137
- uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
138
- with:
139
- target: ${{ matrix.platform.target }}
140
- args: --release --out dist -i python3.13t
141
-
142
- sccache: false
143
- manylinux: musllinux_1_2
144
- - name: Build free-threaded wheels
145
130
  uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
146
131
  with:
147
132
  target: ${{ matrix.platform.target }}
@@ -150,7 +135,7 @@ jobs:
150
135
  sccache: false
151
136
  manylinux: musllinux_1_2
152
137
  - name: Upload wheels
153
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
138
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
154
139
  with:
155
140
  name: wheels-musllinux-${{ matrix.platform.target }}
156
141
  path: dist
@@ -166,12 +151,12 @@ jobs:
166
151
  - runner: windows-latest
167
152
  target: x86
168
153
  steps:
169
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
154
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
170
155
  with:
171
156
  persist-credentials: false
172
- - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
157
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
173
158
  with:
174
- python-version: '3.10'
159
+ python-version: '3.14'
175
160
  architecture: ${{ matrix.platform.target }}
176
161
  - name: Build wheels
177
162
  uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
@@ -179,16 +164,10 @@ jobs:
179
164
  target: ${{ matrix.platform.target }}
180
165
  args: --release --out dist -i python
181
166
  sccache: false
182
- - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
167
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
183
168
  with:
184
- python-version: 3.13t
169
+ python-version: 3.14t
185
170
  architecture: ${{ matrix.platform.target }}
186
- - name: Build free-threaded wheels
187
- uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
188
- with:
189
- target: ${{ matrix.platform.target }}
190
- args: --release --out dist -i python3.13t
191
- sccache: false
192
171
  - name: Build free-threaded wheels
193
172
  uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
194
173
  with:
@@ -196,7 +175,7 @@ jobs:
196
175
  args: --release --out dist -i python3.14t
197
176
  sccache: false
198
177
  - name: Upload wheels
199
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
178
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
200
179
  with:
201
180
  name: wheels-windows-${{ matrix.platform.target }}
202
181
  path: dist
@@ -212,12 +191,12 @@ jobs:
212
191
  - runner: macos-15
213
192
  target: aarch64
214
193
  steps:
215
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
194
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
216
195
  with:
217
196
  persist-credentials: false
218
- - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
197
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
219
198
  with:
220
- python-version: '3.10'
199
+ python-version: '3.14'
221
200
  - name: Build wheels
222
201
  uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
223
202
  with:
@@ -225,13 +204,6 @@ jobs:
225
204
  args: --release --out dist -i python
226
205
  sccache: false
227
206
  - name: Build free-threaded wheels
228
- uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
229
- with:
230
- target: ${{ matrix.platform.target }}
231
- args: --release --out dist -i python3.13t
232
-
233
- sccache: false
234
- - name: Build free-threaded wheels
235
207
  uses: PyO3/maturin-action@e83996d129638aa358a18fbd1dfb82f0b0fb5d3b # v1.51.0
236
208
  with:
237
209
  target: ${{ matrix.platform.target }}
@@ -239,7 +211,7 @@ jobs:
239
211
 
240
212
  sccache: false
241
213
  - name: Upload wheels
242
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
214
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
243
215
  with:
244
216
  name: wheels-macos-${{ matrix.platform.target }}
245
217
  path: dist
@@ -248,7 +220,7 @@ jobs:
248
220
  runs-on: ubuntu-24.04
249
221
  name: Package sdist
250
222
  steps:
251
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
223
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
252
224
  with:
253
225
  persist-credentials: false
254
226
  - name: Build sdist
@@ -257,12 +229,13 @@ jobs:
257
229
  command: sdist
258
230
  args: --out dist
259
231
  - name: Upload sdist
260
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
232
+ uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
261
233
  with:
262
234
  name: wheels-sdist
263
235
  path: dist
264
236
 
265
237
  all-tests:
238
+ if: ${{ always() }}
266
239
  needs:
267
240
  - test
268
241
  - linux
@@ -273,7 +246,19 @@ jobs:
273
246
  name: CI passed
274
247
  runs-on: ubuntu-slim
275
248
  steps:
276
- - run: echo
249
+ - name: Verify dependent jobs
250
+ env:
251
+ RESULTS: ${{ join(needs.*.result, ' ') }}
252
+ run: |
253
+ count=0
254
+ for result in $RESULTS; do
255
+ count=$((count + 1))
256
+ if test "$result" != success; then
257
+ echo "Dependent job result: $result"
258
+ exit 1
259
+ fi
260
+ done
261
+ test "$count" -eq 6
277
262
 
278
263
  release:
279
264
  name: Release
@@ -288,12 +273,12 @@ jobs:
288
273
  # Used to generate artifact attestation
289
274
  attestations: write
290
275
  steps:
291
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
276
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
292
277
  with:
293
278
  persist-credentials: false
294
279
  - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
295
280
  - name: Generate artifact attestation
296
- uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
281
+ uses: actions/attest-build-provenance@0f67c3f4856b2e3261c31976d6725780e5e4c373 # v4.1.1
297
282
  with:
298
283
  subject-path: wheels-*/*
299
284
  - name: Publish to PyPI
@@ -311,7 +296,7 @@ jobs:
311
296
  needs: all-tests
312
297
  if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
313
298
  steps:
314
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
299
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
315
300
  with:
316
301
  persist-credentials: false
317
302
  - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
@@ -15,8 +15,8 @@ jobs:
15
15
  runs-on: ubuntu-slim
16
16
  steps:
17
17
  - name: Checkout Repository
18
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
19
19
  with:
20
20
  persist-credentials: false
21
21
  - name: Dependency Review
22
- uses: actions/dependency-review-action@2031cfc080254a8a887f58cffee85186f0e49e48 # v4.9.0
22
+ uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
@@ -8,6 +8,8 @@ name: Pre-commit check
8
8
  on:
9
9
  push:
10
10
  branches-ignore:
11
+ - copilot/**
12
+ - codex/**
11
13
  - renovate/**
12
14
  - weblate
13
15
  - dependabot/**
@@ -18,28 +20,13 @@ permissions:
18
20
 
19
21
  jobs:
20
22
  pre-commit:
21
- runs-on: ubuntu-24.04
23
+ runs-on: ubuntu-24.04-arm
22
24
 
23
25
  steps:
24
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
26
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
25
27
  with:
26
28
  persist-credentials: false
27
- - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
28
- with:
29
- path: |
30
- ~/.cache/prek
31
- ~/.cache/kingfisher
32
- key: ${{ runner.os }}-prek-${{ hashFiles('.pre-commit-config.yaml') }}
33
- restore-keys: |
34
- ${{ runner.os }}-prek-
35
- - name: Setup Python
36
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
37
- with:
38
- python-version: '3.14'
39
- - uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
40
- with:
41
- version: 0.11.6
42
- enable-cache: false
29
+ - uses: ./.github/actions/pre-commit-setup
43
30
  - name: detect method
44
31
  id: detect
45
32
  run: |
@@ -3,26 +3,22 @@
3
3
  # SPDX-License-Identifier: CC0-1.0
4
4
 
5
5
  # This file is maintained in https://github.com/WeblateOrg/meta/
6
-
7
6
  name: Pull request automation
8
7
 
9
8
  on: # zizmor: ignore[dangerous-triggers]
10
9
  pull_request_target:
11
10
  types: opened
12
11
 
13
- permissions:
14
- contents: read
12
+ permissions: {}
15
13
 
16
14
  jobs:
17
- weblate_automerge:
15
+ weblate-automerge:
18
16
  runs-on: ubuntu-slim
19
17
  name: Weblate automerge
20
- if: github.actor == 'weblate'
18
+ if: github.event.pull_request.user.login == 'weblate' || github.event.pull_request.user.login == 'hosted-weblate[bot]'
21
19
  steps:
22
- - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23
- with:
24
- persist-credentials: false
25
20
  - name: Enable Pull Request Automerge
26
- run: gh pr merge --rebase --auto "${{ github.event.pull_request.number }}"
21
+ run: gh pr merge --repo "$GITHUB_REPOSITORY" --rebase --auto "$PR_NUMBER"
27
22
  env:
28
23
  GH_TOKEN: ${{ secrets.WEBLATE_CI_TOKEN }} # zizmor: ignore[secrets-outside-env]
24
+ PR_NUMBER: ${{ github.event.pull_request.number }}
@@ -19,7 +19,7 @@ repos:
19
19
  hooks:
20
20
  - id: yamllint
21
21
  - repo: https://github.com/astral-sh/ruff-pre-commit
22
- rev: v0.15.10
22
+ rev: v0.16.0
23
23
  hooks:
24
24
  - id: ruff-check
25
25
  args:
@@ -37,16 +37,6 @@ repos:
37
37
  args: [--autofix, --indent, '2']
38
38
  - id: pretty-format-toml
39
39
  args: [--autofix]
40
- - repo: https://github.com/executablebooks/mdformat
41
- rev: 1.0.0
42
- hooks:
43
- - id: mdformat
44
- additional_dependencies:
45
- - mdformat-gfm==1.0.0
46
- - repo: https://github.com/igorshubovych/markdownlint-cli
47
- rev: v0.48.0
48
- hooks:
49
- - id: markdownlint
50
40
  - repo: https://github.com/fsfe/reuse-tool
51
41
  rev: v6.2.0
52
42
  hooks:
@@ -56,13 +46,18 @@ repos:
56
46
  hooks:
57
47
  - id: actionlint
58
48
  - repo: https://github.com/zizmorcore/zizmor-pre-commit
59
- rev: v1.23.1
49
+ rev: v1.28.0
60
50
  hooks:
61
51
  - id: zizmor
62
52
  - repo: https://github.com/mongodb/kingfisher
63
- rev: v1.95.0
53
+ rev: v1.109.0
64
54
  hooks:
65
55
  - id: kingfisher-auto
56
+ - repo: https://github.com/rvben/rumdl-pre-commit
57
+ rev: v0.2.43
58
+ hooks:
59
+ - id: rumdl
60
+ - id: rumdl-fmt
66
61
  ci:
67
62
  autoupdate_schedule: quarterly
68
63
  skip:
@@ -2,22 +2,6 @@
2
2
  # It is not intended for manual editing.
3
3
  version = 4
4
4
 
5
- [[package]]
6
- name = "cc"
7
- version = "1.2.60"
8
- source = "registry+https://github.com/rust-lang/crates.io-index"
9
- checksum = "43c5703da9466b66a946814e1adf53ea2c90f10063b86290cc9eb67ce3478a20"
10
- dependencies = [
11
- "find-msvc-tools",
12
- "shlex",
13
- ]
14
-
15
- [[package]]
16
- name = "find-msvc-tools"
17
- version = "0.1.9"
18
- source = "registry+https://github.com/rust-lang/crates.io-index"
19
- checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
20
-
21
5
  [[package]]
22
6
  name = "heck"
23
7
  version = "0.5.0"
@@ -26,9 +10,9 @@ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
26
10
 
27
11
  [[package]]
28
12
  name = "libc"
29
- version = "0.2.184"
13
+ version = "0.2.189"
30
14
  source = "registry+https://github.com/rust-lang/crates.io-index"
31
- checksum = "48f5d2a454e16a5ea0f4ced81bd44e4cfc7bd3a507b61887c99fd3538b28e4af"
15
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
32
16
 
33
17
  [[package]]
34
18
  name = "once_cell"
@@ -38,24 +22,24 @@ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
38
22
 
39
23
  [[package]]
40
24
  name = "portable-atomic"
41
- version = "1.13.1"
25
+ version = "1.14.0"
42
26
  source = "registry+https://github.com/rust-lang/crates.io-index"
43
- checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
27
+ checksum = "3d20d5497ef88037a52ff98267d066e7f11fcc5e99bbfbd58a42336193aacec3"
44
28
 
45
29
  [[package]]
46
30
  name = "proc-macro2"
47
- version = "1.0.106"
31
+ version = "1.0.107"
48
32
  source = "registry+https://github.com/rust-lang/crates.io-index"
49
- checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
33
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
50
34
  dependencies = [
51
35
  "unicode-ident",
52
36
  ]
53
37
 
54
38
  [[package]]
55
39
  name = "pyo3"
56
- version = "0.28.3"
40
+ version = "0.29.0"
57
41
  source = "registry+https://github.com/rust-lang/crates.io-index"
58
- checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
42
+ checksum = "cd274650b21d4bfc26a0a47587962c1edb425f69287324355cd040c3ea66071c"
59
43
  dependencies = [
60
44
  "libc",
61
45
  "once_cell",
@@ -67,19 +51,18 @@ dependencies = [
67
51
 
68
52
  [[package]]
69
53
  name = "pyo3-build-config"
70
- version = "0.28.3"
54
+ version = "0.29.0"
71
55
  source = "registry+https://github.com/rust-lang/crates.io-index"
72
- checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
56
+ checksum = "c5e2a7d2f0d013342f295c048ad19237add5154a55b1c5a254c0ec93d4109078"
73
57
  dependencies = [
74
- "python3-dll-a",
75
58
  "target-lexicon",
76
59
  ]
77
60
 
78
61
  [[package]]
79
62
  name = "pyo3-ffi"
80
- version = "0.28.3"
63
+ version = "0.29.0"
81
64
  source = "registry+https://github.com/rust-lang/crates.io-index"
82
- checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
65
+ checksum = "ca85c467da1bbc8d866eea5deff9cf29ea5f7785054a17da36e65bda9c05845b"
83
66
  dependencies = [
84
67
  "libc",
85
68
  "pyo3-build-config",
@@ -87,9 +70,9 @@ dependencies = [
87
70
 
88
71
  [[package]]
89
72
  name = "pyo3-macros"
90
- version = "0.28.3"
73
+ version = "0.29.0"
91
74
  source = "registry+https://github.com/rust-lang/crates.io-index"
92
- checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
75
+ checksum = "9ac53762fd065daa3194dd09337a38bd793a188100fd1a9304c4ab312d901771"
93
76
  dependencies = [
94
77
  "proc-macro2",
95
78
  "pyo3-macros-backend",
@@ -99,46 +82,30 @@ dependencies = [
99
82
 
100
83
  [[package]]
101
84
  name = "pyo3-macros-backend"
102
- version = "0.28.3"
85
+ version = "0.29.0"
103
86
  source = "registry+https://github.com/rust-lang/crates.io-index"
104
- checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
87
+ checksum = "4ca3a1557399783172dc5bf39cfca835157732532cba56b71d2292161e53b362"
105
88
  dependencies = [
106
89
  "heck",
107
90
  "proc-macro2",
108
- "pyo3-build-config",
109
91
  "quote",
110
92
  "syn",
111
93
  ]
112
94
 
113
- [[package]]
114
- name = "python3-dll-a"
115
- version = "0.2.15"
116
- source = "registry+https://github.com/rust-lang/crates.io-index"
117
- checksum = "d80ba7540edb18890d444c5aa8e1f1f99b1bdf26fb26ae383135325f4a36042b"
118
- dependencies = [
119
- "cc",
120
- ]
121
-
122
95
  [[package]]
123
96
  name = "quote"
124
- version = "1.0.45"
97
+ version = "1.0.47"
125
98
  source = "registry+https://github.com/rust-lang/crates.io-index"
126
- checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
99
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
127
100
  dependencies = [
128
101
  "proc-macro2",
129
102
  ]
130
103
 
131
- [[package]]
132
- name = "shlex"
133
- version = "1.3.0"
134
- source = "registry+https://github.com/rust-lang/crates.io-index"
135
- checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
136
-
137
104
  [[package]]
138
105
  name = "syn"
139
- version = "2.0.117"
106
+ version = "2.0.119"
140
107
  source = "registry+https://github.com/rust-lang/crates.io-index"
141
- checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
108
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
142
109
  dependencies = [
143
110
  "proc-macro2",
144
111
  "quote",
@@ -157,17 +124,24 @@ version = "1.0.24"
157
124
  source = "registry+https://github.com/rust-lang/crates.io-index"
158
125
  checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
159
126
 
127
+ [[package]]
128
+ name = "unicode-linebreak"
129
+ version = "0.1.5"
130
+ source = "registry+https://github.com/rust-lang/crates.io-index"
131
+ checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
132
+
160
133
  [[package]]
161
134
  name = "unicode-segmentation"
162
- version = "1.13.2"
135
+ version = "1.13.3"
163
136
  source = "registry+https://github.com/rust-lang/crates.io-index"
164
- checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
137
+ checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
165
138
 
166
139
  [[package]]
167
140
  name = "unicode-segmentation-rs"
168
- version = "0.2.4"
141
+ version = "0.3.1"
169
142
  dependencies = [
170
143
  "pyo3",
144
+ "unicode-linebreak",
171
145
  "unicode-segmentation",
172
146
  "unicode-width",
173
147
  ]
@@ -1,6 +1,7 @@
1
1
  [dependencies]
2
- pyo3 = {version = "0.28.3", features = ["extension-module", "abi3-py310", "generate-import-lib"]}
3
- unicode-segmentation = "1.13.2"
2
+ pyo3 = {version = "0.29.0", features = ["extension-module", "abi3-py310"]}
3
+ unicode-linebreak = "0.1.5"
4
+ unicode-segmentation = "1.13.3"
4
5
  unicode-width = "0.2.2"
5
6
 
6
7
  [lib]
@@ -11,8 +12,8 @@ name = "unicode_segmentation_rs"
11
12
  authors = ["Michal Čihař <michal@weblate.org>"]
12
13
  description = "Unicode segmentation and width for Python using Rust"
13
14
  edition = "2024"
14
- license = "MIT"
15
+ license = "Apache-2.0"
15
16
  name = "unicode-segmentation-rs"
16
17
  readme = "README.md"
17
18
  repository = "https://github.com/WeblateOrg/unicode-segmentation-rs"
18
- version = "0.2.4"
19
+ version = "0.3.1"