comrak 0.0.6__tar.gz → 0.0.9__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of comrak might be problematic. Click here for more details.

Files changed (32) hide show
  1. {comrak-0.0.6 → comrak-0.0.9}/.github/workflows/CI.yml +14 -11
  2. comrak-0.0.9/.github/workflows/deploy.yml +36 -0
  3. comrak-0.0.9/.github/workflows/test.yml +111 -0
  4. comrak-0.0.9/.just/commit.just +68 -0
  5. comrak-0.0.9/.just/ship.just +36 -0
  6. comrak-0.0.9/.just/test.just +2 -0
  7. {comrak-0.0.6 → comrak-0.0.9}/.pre-commit-config.yaml +4 -17
  8. {comrak-0.0.6 → comrak-0.0.9}/Cargo.lock +31 -107
  9. {comrak-0.0.6 → comrak-0.0.9}/Cargo.toml +3 -2
  10. comrak-0.0.9/DEVELOPMENT.md +5 -0
  11. comrak-0.0.9/Justfile +6 -0
  12. {comrak-0.0.6 → comrak-0.0.9}/PKG-INFO +2 -9
  13. comrak-0.0.9/pyproject.toml +78 -0
  14. {comrak-0.0.6 → comrak-0.0.9}/src/options.rs +9 -13
  15. comrak-0.0.9/tests/comrak_test.py +276 -0
  16. {comrak-0.0.6 → comrak-0.0.9}/uv.lock +365 -291
  17. comrak-0.0.6/DEVELOPMENT.md +0 -7
  18. comrak-0.0.6/pyproject.toml +0 -61
  19. {comrak-0.0.6 → comrak-0.0.9}/.aiignore +0 -0
  20. {comrak-0.0.6 → comrak-0.0.9}/.gitignore +0 -0
  21. {comrak-0.0.6 → comrak-0.0.9}/LICENSE +0 -0
  22. {comrak-0.0.6 → comrak-0.0.9}/README.md +0 -0
  23. {comrak-0.0.6 → comrak-0.0.9}/benchmark/README.md +0 -0
  24. {comrak-0.0.6 → comrak-0.0.9}/benchmark/awesome_python_readme_x1000/comrak_bench.py +0 -0
  25. {comrak-0.0.6 → comrak-0.0.9}/benchmark/awesome_python_readme_x1000/markdown2_bench.py +0 -0
  26. {comrak-0.0.6 → comrak-0.0.9}/benchmark/awesome_python_readme_x1000/markdown_bench.py +0 -0
  27. {comrak-0.0.6 → comrak-0.0.9}/benchmark/hello_world_x1000/comrak_bench.py +0 -0
  28. {comrak-0.0.6 → comrak-0.0.9}/benchmark/hello_world_x1000/markdown2_bench.py +0 -0
  29. {comrak-0.0.6 → comrak-0.0.9}/benchmark/hello_world_x1000/markdown_bench.py +0 -0
  30. {comrak-0.0.6 → comrak-0.0.9}/benchmark/run_medium_benchmark.sh +0 -0
  31. {comrak-0.0.6 → comrak-0.0.9}/benchmark/run_small_benchmark.sh +0 -0
  32. {comrak-0.0.6 → comrak-0.0.9}/src/lib.rs +0 -0
@@ -14,6 +14,10 @@ on:
14
14
  - "*"
15
15
  pull_request:
16
16
  workflow_dispatch:
17
+ workflow_run:
18
+ workflows: ["Deploy Release"]
19
+ types:
20
+ - completed
17
21
 
18
22
  permissions:
19
23
  contents: read
@@ -35,6 +39,7 @@ jobs:
35
39
  )
36
40
  )
37
41
  || (github.event_name == 'workflow_dispatch')
42
+ || (github.event_name == 'workflow_run')
38
43
  steps:
39
44
  - name: Confirm commit message matched
40
45
  run: echo "Commit message matched the condition."
@@ -63,8 +68,7 @@ jobs:
63
68
  with:
64
69
  python-version: 3.x
65
70
  - name: Build wheels
66
- # uses: PyO3/maturin-action@v1.47.1
67
- uses: PyO3/maturin-action@refs/pull/330/head
71
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
68
72
  with:
69
73
  target: ${{ matrix.platform.target }}
70
74
  args: --release --out dist --find-interpreter
@@ -96,7 +100,7 @@ jobs:
96
100
  with:
97
101
  python-version: 3.x
98
102
  - name: Build wheels
99
- uses: PyO3/maturin-action@v1
103
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
100
104
  with:
101
105
  target: ${{ matrix.platform.target }}
102
106
  args: --release --out dist --find-interpreter
@@ -125,7 +129,7 @@ jobs:
125
129
  python-version: 3.x
126
130
  architecture: ${{ matrix.platform.target }}
127
131
  - name: Build wheels
128
- uses: PyO3/maturin-action@v1
132
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
129
133
  with:
130
134
  target: ${{ matrix.platform.target }}
131
135
  args: --release --out dist --find-interpreter
@@ -152,7 +156,7 @@ jobs:
152
156
  with:
153
157
  python-version: 3.x
154
158
  - name: Build wheels
155
- uses: PyO3/maturin-action@v1
159
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
156
160
  with:
157
161
  target: ${{ matrix.platform.target }}
158
162
  args: --release --out dist --find-interpreter
@@ -169,7 +173,7 @@ jobs:
169
173
  steps:
170
174
  - uses: actions/checkout@v4
171
175
  - name: Build sdist
172
- uses: PyO3/maturin-action@v1
176
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
173
177
  with:
174
178
  command: sdist
175
179
  args: --out dist
@@ -181,8 +185,9 @@ jobs:
181
185
 
182
186
  release:
183
187
  name: Release
188
+ environment: pypi
184
189
  runs-on: ubuntu-latest
185
- if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
190
+ if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_run' }}
186
191
  needs: [linux, musllinux, windows, macos, sdist]
187
192
  permissions:
188
193
  # Use to sign the release artifacts
@@ -198,10 +203,8 @@ jobs:
198
203
  with:
199
204
  subject-path: "wheels-*/*"
200
205
  - name: Publish to PyPI
201
- if: ${{ startsWith(github.ref, 'refs/tags/') }}
202
- uses: PyO3/maturin-action@v1
203
- env:
204
- MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
206
+ if: ${{ startsWith(github.ref, 'refs/tags/') }} || (github.event_name == 'workflow_run')
207
+ uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
205
208
  with:
206
209
  command: upload
207
210
  args: --non-interactive --skip-existing wheels-*/*
@@ -0,0 +1,36 @@
1
+ name: Deploy Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+
6
+ jobs:
7
+ deploy-release:
8
+ name: Run just release
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: write
12
+
13
+ steps:
14
+ - name: Checkout repository
15
+ uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 0
18
+ persist-credentials: true
19
+
20
+ - name: Install uv
21
+ uses: astral-sh/setup-uv@v7
22
+
23
+ - name: Install just
24
+ uses: taiki-e/install-action@64adfd9e935fa438859b9e080fd026720b2ba070 # tag=just
25
+ with:
26
+ tool: just@1.38.0,echo-comment@0.2.0
27
+
28
+ - name: Configure git identity
29
+ run: |
30
+ git config user.name "github-actions[bot]"
31
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
32
+
33
+ # Bump version, commit changes, tag as `py-v*`, and push both
34
+ # commit and tag (pushing the latter triggers package release)
35
+ - name: Run just release
36
+ run: just release
@@ -0,0 +1,111 @@
1
+ name: Test
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ workflow_dispatch:
9
+
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ get-python-versions:
16
+ runs-on: ubuntu-latest
17
+ timeout-minutes: 5
18
+ outputs:
19
+ python-versions: ${{ steps.get-versions.outputs.python-versions }}
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+
23
+ - name: Install uv
24
+ uses: astral-sh/setup-uv@v7
25
+
26
+ - name: Get Python versions from uv
27
+ id: get-versions
28
+ run: |
29
+ set -euo pipefail
30
+ MIN_VERSION=$(uvx --from=toml-cli toml get --toml-path=pyproject.toml project.requires-python | sed 's/>=//;s/"//g')
31
+ PYO3_FFI_VERSION=$(grep -m 1 -A 1 'name = "pyo3-ffi"' Cargo.lock | tail -n1 | cut -d '"' -f 2)
32
+ # Download the crate once and reuse the Cargo.toml extraction to avoid repeated curl calls
33
+ TMP_CRATE=$(mktemp)
34
+ curl -sL "https://static.crates.io/crates/pyo3-ffi/pyo3-ffi-$PYO3_FFI_VERSION.crate" -o "$TMP_CRATE"
35
+ # extract Cargo.toml content from the downloaded crate
36
+ CARGO_TOML_CONTENT=$(tar -xzO -f "$TMP_CRATE" "pyo3-ffi-$PYO3_FFI_VERSION/Cargo.toml" 2>/dev/null || true)
37
+ # get the supported CPython max version from the pyo3-ffi crate (from the extracted Cargo.toml)
38
+ MAX_VERSION=$(echo "$CARGO_TOML_CONTENT" | uvx --from=toml-cli toml get --toml-path=/dev/stdin package.metadata.cpython.max-version | tr -d '"')
39
+ # get the supported PyPy min version
40
+ PYPY_MIN=$(echo "$CARGO_TOML_CONTENT" | uvx --from=toml-cli toml get --toml-path=/dev/stdin package.metadata.pypy.min-version | tr -d '"')
41
+ # get the supported PyPy max version
42
+ PYPY_MAX=$(echo "$CARGO_TOML_CONTENT" | uvx --from=toml-cli toml get --toml-path=/dev/stdin package.metadata.pypy.max-version | tr -d '"')
43
+ # gather the list once and derive CPython and (optional) PyPy sets from it
44
+ LIST=$(uv python list --all-versions --output-format json)
45
+
46
+ CPYTHON_VERSIONS=$(echo "$LIST" | jq -c --arg min "$MIN_VERSION" --arg max "$MAX_VERSION" '
47
+ ($min | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $minv |
48
+ ($max | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $maxv |
49
+ [.[] | {v:.version_parts, t:.variant, impl:.implementation}]
50
+ | unique_by([.v.minor,.t])
51
+ | map(select(
52
+ (.impl == "cpython") and
53
+ ((.v.major > $minv.major or (.v.major == $minv.major and .v.minor >= $minv.minor)) and
54
+ (.v.major < $maxv.major or (.v.major == $maxv.major and .v.minor <= $maxv.minor)))
55
+ ))
56
+ | map("\(.v.major).\(.v.minor)\(if .t=="freethreaded" then "t" else "" end)")')
57
+ PYPY_VERSIONS=$(echo "$LIST" | jq -c --arg min "$PYPY_MIN" --arg max "$PYPY_MAX" '
58
+ ($min | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $minv |
59
+ ($max | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $maxv |
60
+ [.[] | {v:.version_parts, t:.variant, impl:.implementation}]
61
+ | unique_by([.v.minor,.impl])
62
+ | map(select(
63
+ (.impl == "pypy") and
64
+ ((.v.major > $minv.major or (.v.major == $minv.major and .v.minor >= $minv.minor)) and
65
+ (.v.major < $maxv.major or (.v.major == $maxv.major and .v.minor <= $maxv.minor)))
66
+ ))
67
+ | map("pypy-\(.v.major).\(.v.minor)")')
68
+ # merge arrays
69
+ versions=$(jq -nc --argjson a "$CPYTHON_VERSIONS" --argjson b "$PYPY_VERSIONS" '$a + $b')
70
+
71
+ echo "python-versions=$versions" >> $GITHUB_OUTPUT
72
+
73
+ test:
74
+ needs: get-python-versions
75
+ runs-on: ubuntu-latest
76
+ timeout-minutes: 10
77
+ strategy:
78
+ fail-fast: false
79
+ matrix:
80
+ python-version: ${{ fromJson(needs.get-python-versions.outputs.python-versions) }}
81
+ steps:
82
+ - uses: actions/checkout@v4
83
+
84
+ - name: Set up mold linker
85
+ uses: rui314/setup-mold@v1
86
+
87
+ - uses: Swatinem/rust-cache@v2.8.1
88
+
89
+ - name: Install uv
90
+ uses: astral-sh/setup-uv@v7
91
+ with:
92
+ enable-cache: false # true
93
+ python-version: ${{ matrix.python-version }}
94
+
95
+ - name: Set up Rust
96
+ uses: dtolnay/rust-toolchain@stable
97
+
98
+ - name: Sync build and test dependencies
99
+ run: uv sync --only-group build --only-group test
100
+
101
+ - name: Build extension
102
+ run: |
103
+ # https://github.com/astral-sh/uv/issues/16434
104
+ # $(uv python find) -m maturin develop --uv
105
+ .venv/bin/python -m maturin develop --uv
106
+
107
+ - name: Run tests
108
+ run: |
109
+ # https://github.com/astral-sh/uv/issues/16434
110
+ # $(uv python find) -m pytest
111
+ .venv/bin/pytest
@@ -0,0 +1,68 @@
1
+ # NO_STASH is a git stash `:(exclude)` pattern. We never stash the Justfile
2
+ NO_STASH := "Justfile"
3
+
4
+ # FIXER must be the name of a Justfile task
5
+ FIXER := "pc-fix"
6
+
7
+ check-fixer:
8
+ #!/usr/bin/env echo-comment
9
+
10
+ just -s {{FIXER}} >/dev/null 2>&1
11
+ test $? -eq 0 || echo "# just: No such task '{{FIXER}}'" | echo-comment /dev/stdin --color=bold-red
12
+
13
+ no-fix-stash msg="pre-commit-temp":
14
+ git stash push --keep-index --include-untracked -m "{{msg}}" -- \
15
+ ':/*' \
16
+ ':(exclude){{NO_STASH}}'
17
+
18
+ stash-restore *changes:
19
+ #!/usr/bin/env -S echo-comment --color=bold-yellow
20
+
21
+ # Restoring {{changes}}
22
+ git stash pop --quiet
23
+
24
+
25
+ # Special commit flag that will run a given command
26
+ commit msg *args:
27
+ #!/usr/bin/env -S echo-comment --color bold-yellow
28
+
29
+ # Confirm fixer {{FIXER}} is a valid Justfile task
30
+ check-fixer
31
+
32
+ # Halt at non-zero return codes from now on
33
+ set -e
34
+
35
+ # Count unstaged/untracked files
36
+ unstaged_count=$(git diff --name-only -- . ':(exclude){{NO_STASH}}' | wc -l)
37
+ untracked_count=$(git ls-files --others --exclude-standard -- ':/*' ':(exclude){{NO_STASH}}' | wc -l)
38
+ stash_count=$((unstaged_count + untracked_count))
39
+
40
+ # Files to stash: $stash_count
41
+ if [ $stash_count -ne 0 ]; then
42
+ case "$unstaged_count-$untracked_count" in
43
+ 0-*) kinds="untracked" ;;
44
+ *-0) kinds="unstaged" ;;
45
+ *-*) kinds="unstaged and untracked" ;;
46
+ esac
47
+
48
+ # Stashing $stash_count $kinds files
49
+ just no-fix-stash
50
+
51
+ ## Always restore later, even on failure
52
+ trap 'just stash-restore $stash_count $kinds changes' EXIT
53
+ fi
54
+
55
+ # Autofix run before calling commit (which triggers pre-commit hooks)
56
+ just {{FIXER}}
57
+
58
+ # Count any files which now have unstaged changes
59
+ fixer_unstaged_count=$(git diff --name-only -- . ':(exclude){{NO_STASH}}' | wc -l)
60
+
61
+ if [ $fixer_unstaged_count -ne 0 ]; then
62
+ s="${fixer_unstaged_count#1}" # strip leading "1", empty if 1 → "", else → "s"
63
+ # Fixer modified $fixer_unstaged_count file${s:+s}, staging...
64
+ git add --all
65
+ fi
66
+
67
+ # Commit the changes
68
+ git commit -m "{{msg}}" {{args}}
@@ -0,0 +1,36 @@
1
+ # Release a new version, pass --help for options to `uv version --bump`
2
+ release bump_level="patch":
3
+ #!/usr/bin/env -S echo-comment --shell-flags="-e" --color bright-green
4
+
5
+ ## Exit early if help was requested
6
+ if [[ "{{ bump_level }}" == "--help" ]]; then
7
+ uv version --help
8
+ exit 0
9
+ fi
10
+
11
+ # 📈 Bump the version in pyproject.toml (patch/minor/major: {{ bump_level }})
12
+ uv version --bump {{ bump_level }}
13
+
14
+ # 📦 Stage all changes (including the version bump)
15
+ git add --all
16
+
17
+ # 🔄 Create a temporary commit to capture the new version
18
+ git commit -m "chore(temp): version check"
19
+
20
+ # ✂️ Extract the new version number that was just set, undo the commit
21
+ new_version=$(uv version --short)
22
+ git reset --soft HEAD~1
23
+
24
+ # ✅ Stage everything again and create the real release commit
25
+ git add --all
26
+ git commit -m "chore(release): bump 🐍 -> v$new_version"
27
+
28
+ # 🏷️ Create the git tag for this release
29
+ git tag -a "py-$new_version" -m "Python Release $new_version"
30
+
31
+ branch_name=$(git rev-parse --abbrev-ref HEAD);
32
+ # 🚀 Push the release commit to $branch_name
33
+ git push origin $branch_name
34
+
35
+ # 🚀 Push the commit tag to the remote (will trigger PyPI release via Trusted Publishing)
36
+ git push origin "py-$new_version"
@@ -0,0 +1,2 @@
1
+ test *args:
2
+ $(uv python find) -m pytest {{args}}
@@ -8,13 +8,13 @@ default_install_hook_types:
8
8
 
9
9
  repos:
10
10
  - repo: https://github.com/compilerla/conventional-pre-commit
11
- rev: v4.0.0
11
+ rev: v4.3.0
12
12
  hooks:
13
13
  - id: conventional-pre-commit
14
14
  stages: [commit-msg]
15
15
  # args: [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test]
16
16
  - repo: https://github.com/pre-commit/pre-commit-hooks
17
- rev: v5.0.0
17
+ rev: v6.0.0
18
18
  hooks:
19
19
  - id: check-toml
20
20
  - id: check-yaml
@@ -23,24 +23,11 @@ repos:
23
23
  - id: end-of-file-fixer
24
24
  - id: name-tests-test
25
25
  - id: trailing-whitespace
26
- - repo: https://github.com/pappasam/toml-sort
27
- rev: v0.24.2
28
- hooks:
29
- - id: toml-sort-fix
30
- - repo: https://github.com/asottile/add-trailing-comma
31
- rev: v3.1.0
32
- hooks:
33
- - id: add-trailing-comma
34
- - repo: https://github.com/asottile/pyupgrade
35
- rev: v3.19.1
36
- hooks:
37
- - id: pyupgrade
38
- args: [--py310-plus]
39
26
  - repo: https://github.com/astral-sh/ruff-pre-commit
40
- rev: v0.9.7
27
+ rev: v0.14.1
41
28
  hooks:
42
29
  # Run the linter
43
- - id: ruff
30
+ - id: ruff-check
44
31
  args: [--fix]
45
32
  # Run the formatter
46
33
  - id: ruff-format
@@ -140,12 +140,6 @@ dependencies = [
140
140
  "syn",
141
141
  ]
142
142
 
143
- [[package]]
144
- name = "bumpalo"
145
- version = "3.17.0"
146
- source = "registry+https://github.com/rust-lang/crates.io-index"
147
- checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
148
-
149
143
  [[package]]
150
144
  name = "caseless"
151
145
  version = "0.2.2"
@@ -221,24 +215,24 @@ checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
221
215
  name = "comrak"
222
216
  version = "0.1.0"
223
217
  dependencies = [
224
- "comrak 0.35.0",
218
+ "comrak 0.45.0",
225
219
  "pyo3",
226
220
  ]
227
221
 
228
222
  [[package]]
229
223
  name = "comrak"
230
- version = "0.35.0"
224
+ version = "0.45.0"
231
225
  source = "registry+https://github.com/rust-lang/crates.io-index"
232
- checksum = "52602e10393cfaaf8accaf707f2da743dc22cbe700a343ff8dbc9e5e04bc6b74"
226
+ checksum = "3f297347343278e6e3581015487de80ec975d8e7c8bd4905b604cef1ae5ecf89"
233
227
  dependencies = [
234
228
  "bon",
235
229
  "caseless",
236
230
  "clap",
237
231
  "emojis",
238
232
  "entities",
239
- "memchr",
233
+ "fmt2io",
234
+ "jetscii",
240
235
  "shell-words",
241
- "slug",
242
236
  "syntect",
243
237
  "typed-arena",
244
238
  "unicode_categories",
@@ -298,12 +292,6 @@ dependencies = [
298
292
  "powerfmt",
299
293
  ]
300
294
 
301
- [[package]]
302
- name = "deunicode"
303
- version = "1.6.0"
304
- source = "registry+https://github.com/rust-lang/crates.io-index"
305
- checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00"
306
-
307
295
  [[package]]
308
296
  name = "emojis"
309
297
  version = "0.6.4"
@@ -355,6 +343,12 @@ dependencies = [
355
343
  "miniz_oxide",
356
344
  ]
357
345
 
346
+ [[package]]
347
+ name = "fmt2io"
348
+ version = "1.0.0"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "6b6129284da9f7e5296cc22183a63f24300e945e297705dcc0672f7df01d62c8"
351
+
358
352
  [[package]]
359
353
  name = "fnv"
360
354
  version = "1.0.7"
@@ -407,6 +401,12 @@ version = "1.0.14"
407
401
  source = "registry+https://github.com/rust-lang/crates.io-index"
408
402
  checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
409
403
 
404
+ [[package]]
405
+ name = "jetscii"
406
+ version = "0.5.3"
407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
408
+ checksum = "47f142fe24a9c9944451e8349de0a56af5f3e7226dc46f3ed4d4ecc0b85af75e"
409
+
410
410
  [[package]]
411
411
  name = "libc"
412
412
  version = "0.2.169"
@@ -425,12 +425,6 @@ version = "0.4.15"
425
425
  source = "registry+https://github.com/rust-lang/crates.io-index"
426
426
  checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
427
427
 
428
- [[package]]
429
- name = "log"
430
- version = "0.4.25"
431
- source = "registry+https://github.com/rust-lang/crates.io-index"
432
- checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
433
-
434
428
  [[package]]
435
429
  name = "memchr"
436
430
  version = "2.7.4"
@@ -463,9 +457,9 @@ checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
463
457
 
464
458
  [[package]]
465
459
  name = "once_cell"
466
- version = "1.20.3"
460
+ version = "1.21.3"
467
461
  source = "registry+https://github.com/rust-lang/crates.io-index"
468
- checksum = "945462a4b81e43c4e3ba96bd7b49d834c6f61198356aa858733bc4acf3cbe62e"
462
+ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
469
463
 
470
464
  [[package]]
471
465
  name = "onig"
@@ -559,11 +553,10 @@ dependencies = [
559
553
 
560
554
  [[package]]
561
555
  name = "pyo3"
562
- version = "0.23.4"
556
+ version = "0.27.0"
563
557
  source = "registry+https://github.com/rust-lang/crates.io-index"
564
- checksum = "57fe09249128b3173d092de9523eaa75136bf7ba85e0d69eca241c7939c933cc"
558
+ checksum = "fa8e48c12afdeb26aa4be4e5c49fb5e11c3efa0878db783a960eea2b9ac6dd19"
565
559
  dependencies = [
566
- "cfg-if",
567
560
  "indoc",
568
561
  "libc",
569
562
  "memoffset",
@@ -577,19 +570,18 @@ dependencies = [
577
570
 
578
571
  [[package]]
579
572
  name = "pyo3-build-config"
580
- version = "0.23.4"
573
+ version = "0.27.0"
581
574
  source = "registry+https://github.com/rust-lang/crates.io-index"
582
- checksum = "1cd3927b5a78757a0d71aa9dff669f903b1eb64b54142a9bd9f757f8fde65fd7"
575
+ checksum = "bc1989dbf2b60852e0782c7487ebf0b4c7f43161ffe820849b56cf05f945cee1"
583
576
  dependencies = [
584
- "once_cell",
585
577
  "target-lexicon",
586
578
  ]
587
579
 
588
580
  [[package]]
589
581
  name = "pyo3-ffi"
590
- version = "0.23.4"
582
+ version = "0.27.0"
591
583
  source = "registry+https://github.com/rust-lang/crates.io-index"
592
- checksum = "dab6bb2102bd8f991e7749f130a70d05dd557613e39ed2deeee8e9ca0c4d548d"
584
+ checksum = "c808286da7500385148930152e54fb6883452033085bf1f857d85d4e82ca905c"
593
585
  dependencies = [
594
586
  "libc",
595
587
  "pyo3-build-config",
@@ -597,9 +589,9 @@ dependencies = [
597
589
 
598
590
  [[package]]
599
591
  name = "pyo3-macros"
600
- version = "0.23.4"
592
+ version = "0.27.0"
601
593
  source = "registry+https://github.com/rust-lang/crates.io-index"
602
- checksum = "91871864b353fd5ffcb3f91f2f703a22a9797c91b9ab497b1acac7b07ae509c7"
594
+ checksum = "83a0543c16be0d86cf0dbf2e2b636ece9fd38f20406bb43c255e0bc368095f92"
603
595
  dependencies = [
604
596
  "proc-macro2",
605
597
  "pyo3-macros-backend",
@@ -609,9 +601,9 @@ dependencies = [
609
601
 
610
602
  [[package]]
611
603
  name = "pyo3-macros-backend"
612
- version = "0.23.4"
604
+ version = "0.27.0"
613
605
  source = "registry+https://github.com/rust-lang/crates.io-index"
614
- checksum = "43abc3b80bc20f3facd86cd3c60beed58c3e2aa26213f3cda368de39c60a27e4"
606
+ checksum = "2a00da2ce064dcd582448ea24a5a26fa9527e0483103019b741ebcbe632dcd29"
615
607
  dependencies = [
616
608
  "heck",
617
609
  "proc-macro2",
@@ -751,16 +743,6 @@ version = "1.0.1"
751
743
  source = "registry+https://github.com/rust-lang/crates.io-index"
752
744
  checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d"
753
745
 
754
- [[package]]
755
- name = "slug"
756
- version = "0.1.6"
757
- source = "registry+https://github.com/rust-lang/crates.io-index"
758
- checksum = "882a80f72ee45de3cc9a5afeb2da0331d58df69e4e7d8eeb5d3c7784ae67e724"
759
- dependencies = [
760
- "deunicode",
761
- "wasm-bindgen",
762
- ]
763
-
764
746
  [[package]]
765
747
  name = "strsim"
766
748
  version = "0.11.1"
@@ -803,9 +785,9 @@ dependencies = [
803
785
 
804
786
  [[package]]
805
787
  name = "target-lexicon"
806
- version = "0.12.16"
788
+ version = "0.13.2"
807
789
  source = "registry+https://github.com/rust-lang/crates.io-index"
808
- checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
790
+ checksum = "e502f78cdbb8ba4718f566c418c52bc729126ffd16baee5baa718cf25dd5a69a"
809
791
 
810
792
  [[package]]
811
793
  name = "terminal_size"
@@ -932,64 +914,6 @@ dependencies = [
932
914
  "winapi-util",
933
915
  ]
934
916
 
935
- [[package]]
936
- name = "wasm-bindgen"
937
- version = "0.2.100"
938
- source = "registry+https://github.com/rust-lang/crates.io-index"
939
- checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
940
- dependencies = [
941
- "cfg-if",
942
- "once_cell",
943
- "rustversion",
944
- "wasm-bindgen-macro",
945
- ]
946
-
947
- [[package]]
948
- name = "wasm-bindgen-backend"
949
- version = "0.2.100"
950
- source = "registry+https://github.com/rust-lang/crates.io-index"
951
- checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
952
- dependencies = [
953
- "bumpalo",
954
- "log",
955
- "proc-macro2",
956
- "quote",
957
- "syn",
958
- "wasm-bindgen-shared",
959
- ]
960
-
961
- [[package]]
962
- name = "wasm-bindgen-macro"
963
- version = "0.2.100"
964
- source = "registry+https://github.com/rust-lang/crates.io-index"
965
- checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
966
- dependencies = [
967
- "quote",
968
- "wasm-bindgen-macro-support",
969
- ]
970
-
971
- [[package]]
972
- name = "wasm-bindgen-macro-support"
973
- version = "0.2.100"
974
- source = "registry+https://github.com/rust-lang/crates.io-index"
975
- checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
976
- dependencies = [
977
- "proc-macro2",
978
- "quote",
979
- "syn",
980
- "wasm-bindgen-backend",
981
- "wasm-bindgen-shared",
982
- ]
983
-
984
- [[package]]
985
- name = "wasm-bindgen-shared"
986
- version = "0.2.100"
987
- source = "registry+https://github.com/rust-lang/crates.io-index"
988
- checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
989
- dependencies = [
990
- "unicode-ident",
991
- ]
992
-
993
917
  [[package]]
994
918
  name = "winapi-util"
995
919
  version = "0.1.9"
@@ -1,6 +1,6 @@
1
1
  [dependencies]
2
- comrak_lib = {package = "comrak", version = "0.35.0", features = ["shortcodes"]}
3
- pyo3 = "0.23.3"
2
+ comrak_lib = {package = "comrak", version = "0.45.0", features = ["shortcodes"]}
3
+ pyo3 = {version = "0.27.0", features = ["abi3"]}
4
4
 
5
5
  [lib]
6
6
  name = "comrak"
@@ -10,6 +10,7 @@ crate-type = ["cdylib"]
10
10
  name = "comrak"
11
11
  version = "0.1.0"
12
12
  edition = "2021"
13
+ readme = "README.md"
13
14
 
14
15
  [profile.release]
15
16
  opt-level = 2
@@ -0,0 +1,5 @@
1
+ ## Release process
2
+
3
+ Optionally run `just` to run the pre-commit hooks
4
+
5
+ - `just release` will bump and push both a release commit and a tag
comrak-0.0.9/Justfile ADDED
@@ -0,0 +1,6 @@
1
+ import ".just/commit.just"
2
+ import ".just/ship.just"
3
+ import ".just/test.just"
4
+
5
+ pc-fix:
6
+ prek run --all-files