comrak 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.
Potentially problematic release.
This version of comrak might be problematic. Click here for more details.
- {comrak-0.0.5 → comrak-0.0.8}/.github/workflows/CI.yml +36 -12
- comrak-0.0.8/.github/workflows/test.yml +86 -0
- comrak-0.0.8/.just/commit.just +68 -0
- comrak-0.0.8/.just/ship.just +36 -0
- comrak-0.0.8/.just/test.just +2 -0
- {comrak-0.0.5 → comrak-0.0.8}/.pre-commit-config.yaml +7 -6
- {comrak-0.0.5 → comrak-0.0.8}/Cargo.lock +31 -107
- comrak-0.0.8/Cargo.toml +21 -0
- comrak-0.0.8/DEVELOPMENT.md +5 -0
- comrak-0.0.8/Justfile +6 -0
- {comrak-0.0.5 → comrak-0.0.8}/PKG-INFO +2 -9
- {comrak-0.0.5 → comrak-0.0.8}/pyproject.toml +24 -14
- {comrak-0.0.5 → comrak-0.0.8}/src/options.rs +9 -13
- comrak-0.0.8/tests/comrak_test.py +276 -0
- {comrak-0.0.5 → comrak-0.0.8}/uv.lock +365 -291
- comrak-0.0.5/Cargo.toml +0 -12
- comrak-0.0.5/DEVELOPMENT.md +0 -7
- {comrak-0.0.5 → comrak-0.0.8}/.aiignore +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/.gitignore +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/LICENSE +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/README.md +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/README.md +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/awesome_python_readme_x1000/comrak_bench.py +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/awesome_python_readme_x1000/markdown2_bench.py +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/awesome_python_readme_x1000/markdown_bench.py +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/hello_world_x1000/comrak_bench.py +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/hello_world_x1000/markdown2_bench.py +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/hello_world_x1000/markdown_bench.py +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/run_medium_benchmark.sh +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/benchmark/run_small_benchmark.sh +0 -0
- {comrak-0.0.5 → comrak-0.0.8}/src/lib.rs +0 -0
|
@@ -11,7 +11,7 @@ on:
|
|
|
11
11
|
- main
|
|
12
12
|
- master
|
|
13
13
|
tags:
|
|
14
|
-
-
|
|
14
|
+
- "*"
|
|
15
15
|
pull_request:
|
|
16
16
|
workflow_dispatch:
|
|
17
17
|
|
|
@@ -19,7 +19,28 @@ permissions:
|
|
|
19
19
|
contents: read
|
|
20
20
|
|
|
21
21
|
jobs:
|
|
22
|
+
check-commit:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
# This job only runs if the commit message meets the condition
|
|
25
|
+
if: >
|
|
26
|
+
(
|
|
27
|
+
(
|
|
28
|
+
(github.event_name == 'push')
|
|
29
|
+
|| (github.event_name == 'pull_request' && github.event.pull_request.user.login == 'lmmx')
|
|
30
|
+
)
|
|
31
|
+
&&
|
|
32
|
+
(
|
|
33
|
+
startsWith(github.event.head_commit.message, 'chore(release)') ||
|
|
34
|
+
contains(github.event.head_commit.message, 'cibuildwheel')
|
|
35
|
+
)
|
|
36
|
+
)
|
|
37
|
+
|| (github.event_name == 'workflow_dispatch')
|
|
38
|
+
steps:
|
|
39
|
+
- name: Confirm commit message matched
|
|
40
|
+
run: echo "Commit message matched the condition."
|
|
41
|
+
|
|
22
42
|
linux:
|
|
43
|
+
needs: [check-commit]
|
|
23
44
|
runs-on: ${{ matrix.platform.runner }}
|
|
24
45
|
strategy:
|
|
25
46
|
matrix:
|
|
@@ -27,7 +48,7 @@ jobs:
|
|
|
27
48
|
- runner: ubuntu-22.04
|
|
28
49
|
target: x86_64
|
|
29
50
|
- runner: ubuntu-22.04
|
|
30
|
-
target:
|
|
51
|
+
target: i686-unknown-linux-gnu
|
|
31
52
|
- runner: ubuntu-22.04
|
|
32
53
|
target: aarch64
|
|
33
54
|
- runner: ubuntu-22.04
|
|
@@ -42,7 +63,7 @@ jobs:
|
|
|
42
63
|
with:
|
|
43
64
|
python-version: 3.x
|
|
44
65
|
- name: Build wheels
|
|
45
|
-
uses: PyO3/maturin-action@v1
|
|
66
|
+
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
46
67
|
with:
|
|
47
68
|
target: ${{ matrix.platform.target }}
|
|
48
69
|
args: --release --out dist --find-interpreter
|
|
@@ -55,6 +76,7 @@ jobs:
|
|
|
55
76
|
path: dist
|
|
56
77
|
|
|
57
78
|
musllinux:
|
|
79
|
+
needs: [check-commit]
|
|
58
80
|
runs-on: ${{ matrix.platform.runner }}
|
|
59
81
|
strategy:
|
|
60
82
|
matrix:
|
|
@@ -62,7 +84,7 @@ jobs:
|
|
|
62
84
|
- runner: ubuntu-22.04
|
|
63
85
|
target: x86_64
|
|
64
86
|
- runner: ubuntu-22.04
|
|
65
|
-
target:
|
|
87
|
+
target: i686
|
|
66
88
|
- runner: ubuntu-22.04
|
|
67
89
|
target: aarch64
|
|
68
90
|
- runner: ubuntu-22.04
|
|
@@ -73,7 +95,7 @@ jobs:
|
|
|
73
95
|
with:
|
|
74
96
|
python-version: 3.x
|
|
75
97
|
- name: Build wheels
|
|
76
|
-
uses: PyO3/maturin-action@v1
|
|
98
|
+
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
77
99
|
with:
|
|
78
100
|
target: ${{ matrix.platform.target }}
|
|
79
101
|
args: --release --out dist --find-interpreter
|
|
@@ -86,6 +108,7 @@ jobs:
|
|
|
86
108
|
path: dist
|
|
87
109
|
|
|
88
110
|
windows:
|
|
111
|
+
needs: [check-commit]
|
|
89
112
|
runs-on: ${{ matrix.platform.runner }}
|
|
90
113
|
strategy:
|
|
91
114
|
matrix:
|
|
@@ -101,7 +124,7 @@ jobs:
|
|
|
101
124
|
python-version: 3.x
|
|
102
125
|
architecture: ${{ matrix.platform.target }}
|
|
103
126
|
- name: Build wheels
|
|
104
|
-
uses: PyO3/maturin-action@v1
|
|
127
|
+
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
105
128
|
with:
|
|
106
129
|
target: ${{ matrix.platform.target }}
|
|
107
130
|
args: --release --out dist --find-interpreter
|
|
@@ -113,6 +136,7 @@ jobs:
|
|
|
113
136
|
path: dist
|
|
114
137
|
|
|
115
138
|
macos:
|
|
139
|
+
needs: [check-commit]
|
|
116
140
|
runs-on: ${{ matrix.platform.runner }}
|
|
117
141
|
strategy:
|
|
118
142
|
matrix:
|
|
@@ -127,7 +151,7 @@ jobs:
|
|
|
127
151
|
with:
|
|
128
152
|
python-version: 3.x
|
|
129
153
|
- name: Build wheels
|
|
130
|
-
uses: PyO3/maturin-action@v1
|
|
154
|
+
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
131
155
|
with:
|
|
132
156
|
target: ${{ matrix.platform.target }}
|
|
133
157
|
args: --release --out dist --find-interpreter
|
|
@@ -139,11 +163,12 @@ jobs:
|
|
|
139
163
|
path: dist
|
|
140
164
|
|
|
141
165
|
sdist:
|
|
166
|
+
needs: [check-commit]
|
|
142
167
|
runs-on: ubuntu-latest
|
|
143
168
|
steps:
|
|
144
169
|
- uses: actions/checkout@v4
|
|
145
170
|
- name: Build sdist
|
|
146
|
-
uses: PyO3/maturin-action@v1
|
|
171
|
+
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
147
172
|
with:
|
|
148
173
|
command: sdist
|
|
149
174
|
args: --out dist
|
|
@@ -155,6 +180,7 @@ jobs:
|
|
|
155
180
|
|
|
156
181
|
release:
|
|
157
182
|
name: Release
|
|
183
|
+
environment: pypi
|
|
158
184
|
runs-on: ubuntu-latest
|
|
159
185
|
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
|
|
160
186
|
needs: [linux, musllinux, windows, macos, sdist]
|
|
@@ -170,12 +196,10 @@ jobs:
|
|
|
170
196
|
- name: Generate artifact attestation
|
|
171
197
|
uses: actions/attest-build-provenance@v1
|
|
172
198
|
with:
|
|
173
|
-
subject-path:
|
|
199
|
+
subject-path: "wheels-*/*"
|
|
174
200
|
- name: Publish to PyPI
|
|
175
201
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
176
|
-
uses: PyO3/maturin-action@v1
|
|
177
|
-
env:
|
|
178
|
-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
202
|
+
uses: PyO3/maturin-action@86b9d133d34bc1b40018696f782949dac11bd380 # v1.49.4
|
|
179
203
|
with:
|
|
180
204
|
command: upload
|
|
181
205
|
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
MAX_VERSION=$(
|
|
33
|
+
curl -sL "https://static.crates.io/crates/pyo3-ffi/pyo3-ffi-$PYO3_FFI_VERSION.crate" \
|
|
34
|
+
| tar -xzO "pyo3-ffi-$PYO3_FFI_VERSION/Cargo.toml" \
|
|
35
|
+
| uvx --from=toml-cli toml get --toml-path=/dev/stdin package.metadata.cpython.max-version \
|
|
36
|
+
| tr -d '"'
|
|
37
|
+
)
|
|
38
|
+
versions=$(uv python list --all-versions --output-format json | jq -c --arg min "$MIN_VERSION" --arg max "$MAX_VERSION" '
|
|
39
|
+
($min | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $minv |
|
|
40
|
+
($max | split(".") | {major: .[0]|tonumber, minor: .[1]|tonumber}) as $maxv |
|
|
41
|
+
[.[] | {v:.version_parts, t:.variant}]
|
|
42
|
+
| unique_by([.v.minor,.t])
|
|
43
|
+
| map(select(
|
|
44
|
+
(.v.major > $minv.major or (.v.major == $minv.major and .v.minor >= $minv.minor)) and
|
|
45
|
+
(.v.major < $maxv.major or (.v.major == $maxv.major and .v.minor <= $maxv.minor))
|
|
46
|
+
))
|
|
47
|
+
| map("\(.v.major).\(.v.minor)\(if .t=="freethreaded" then "t" else "" end)")')
|
|
48
|
+
echo "python-versions=$versions" >> $GITHUB_OUTPUT
|
|
49
|
+
|
|
50
|
+
test:
|
|
51
|
+
needs: get-python-versions
|
|
52
|
+
runs-on: ubuntu-latest
|
|
53
|
+
timeout-minutes: 10
|
|
54
|
+
strategy:
|
|
55
|
+
fail-fast: false
|
|
56
|
+
matrix:
|
|
57
|
+
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-versions) }}
|
|
58
|
+
steps:
|
|
59
|
+
- uses: actions/checkout@v4
|
|
60
|
+
|
|
61
|
+
- name: Set up mold linker
|
|
62
|
+
uses: rui314/setup-mold@v1
|
|
63
|
+
|
|
64
|
+
- uses: Swatinem/rust-cache@v2.8.1
|
|
65
|
+
|
|
66
|
+
- name: Install uv
|
|
67
|
+
uses: astral-sh/setup-uv@v7
|
|
68
|
+
with:
|
|
69
|
+
enable-cache: false # true
|
|
70
|
+
python-version: ${{ matrix.python-version }}
|
|
71
|
+
|
|
72
|
+
- name: Set up Rust
|
|
73
|
+
uses: dtolnay/rust-toolchain@stable
|
|
74
|
+
|
|
75
|
+
- name: Sync build and test dependencies
|
|
76
|
+
run: uv sync --only-group build --only-group test
|
|
77
|
+
|
|
78
|
+
- name: Build extension
|
|
79
|
+
run: |
|
|
80
|
+
source .venv/bin/activate
|
|
81
|
+
.venv/bin/maturin develop --uv
|
|
82
|
+
|
|
83
|
+
- name: Run tests
|
|
84
|
+
run: |
|
|
85
|
+
source .venv/bin/activate
|
|
86
|
+
.venv/bin/pytest tests/ -v
|
|
@@ -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"
|
|
@@ -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:
|
|
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:
|
|
17
|
+
rev: v6.0.0
|
|
18
18
|
hooks:
|
|
19
19
|
- id: check-toml
|
|
20
20
|
- id: check-yaml
|
|
@@ -24,20 +24,21 @@ repos:
|
|
|
24
24
|
- id: name-tests-test
|
|
25
25
|
- id: trailing-whitespace
|
|
26
26
|
- repo: https://github.com/pappasam/toml-sort
|
|
27
|
-
rev: v0.
|
|
27
|
+
rev: v0.24.3
|
|
28
28
|
hooks:
|
|
29
29
|
- id: toml-sort-fix
|
|
30
|
+
exclude: ^Cargo.lock$
|
|
30
31
|
- repo: https://github.com/asottile/add-trailing-comma
|
|
31
|
-
rev:
|
|
32
|
+
rev: v4.0.0
|
|
32
33
|
hooks:
|
|
33
34
|
- id: add-trailing-comma
|
|
34
35
|
- repo: https://github.com/asottile/pyupgrade
|
|
35
|
-
rev: v3.
|
|
36
|
+
rev: v3.21.0
|
|
36
37
|
hooks:
|
|
37
38
|
- id: pyupgrade
|
|
38
39
|
args: [--py310-plus]
|
|
39
40
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
40
|
-
rev: v0.
|
|
41
|
+
rev: v0.14.1
|
|
41
42
|
hooks:
|
|
42
43
|
# Run the linter
|
|
43
44
|
- id: ruff
|
|
@@ -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.
|
|
218
|
+
"comrak 0.45.0",
|
|
225
219
|
"pyo3",
|
|
226
220
|
]
|
|
227
221
|
|
|
228
222
|
[[package]]
|
|
229
223
|
name = "comrak"
|
|
230
|
-
version = "0.
|
|
224
|
+
version = "0.45.0"
|
|
231
225
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
-
checksum = "
|
|
226
|
+
checksum = "3f297347343278e6e3581015487de80ec975d8e7c8bd4905b604cef1ae5ecf89"
|
|
233
227
|
dependencies = [
|
|
234
228
|
"bon",
|
|
235
229
|
"caseless",
|
|
236
230
|
"clap",
|
|
237
231
|
"emojis",
|
|
238
232
|
"entities",
|
|
239
|
-
"
|
|
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.
|
|
460
|
+
version = "1.21.3"
|
|
467
461
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
468
|
-
checksum = "
|
|
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.
|
|
556
|
+
version = "0.27.0"
|
|
563
557
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
564
|
-
checksum = "
|
|
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.
|
|
573
|
+
version = "0.27.0"
|
|
581
574
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
582
|
-
checksum = "
|
|
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.
|
|
582
|
+
version = "0.27.0"
|
|
591
583
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
592
|
-
checksum = "
|
|
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.
|
|
592
|
+
version = "0.27.0"
|
|
601
593
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
602
|
-
checksum = "
|
|
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.
|
|
604
|
+
version = "0.27.0"
|
|
613
605
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
614
|
-
checksum = "
|
|
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.
|
|
788
|
+
version = "0.13.2"
|
|
807
789
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
808
|
-
checksum = "
|
|
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"
|
comrak-0.0.8/Cargo.toml
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
[dependencies]
|
|
2
|
+
comrak_lib = {package = "comrak", version = "0.45.0", features = ["shortcodes"]}
|
|
3
|
+
pyo3 = "0.27.0"
|
|
4
|
+
|
|
5
|
+
[lib]
|
|
6
|
+
name = "comrak"
|
|
7
|
+
crate-type = ["cdylib"]
|
|
8
|
+
|
|
9
|
+
[package]
|
|
10
|
+
name = "comrak"
|
|
11
|
+
version = "0.1.0"
|
|
12
|
+
edition = "2021"
|
|
13
|
+
readme = "README.md"
|
|
14
|
+
|
|
15
|
+
[profile.release]
|
|
16
|
+
opt-level = 2
|
|
17
|
+
lto = "thin"
|
|
18
|
+
codegen-units = 1
|
|
19
|
+
panic = "abort"
|
|
20
|
+
debug = false
|
|
21
|
+
strip = "symbols"
|