unicode-segmentation-rs: add build-unicode-segmentation-rs.yml for riscv64 wheels - #1448
Merged
Conversation
luhenry
added a commit
that referenced
this pull request
Sep 7, 2026
maturin builds unicode_segmentation_rs as a package wrapping a same-named compiled submodule (the .pyi stub at the repo root triggers maturin's implicit mixed-mode layout), not a flat module -- the top-level package's __file__ is __init__.py, not the extension.
…ositive abi3audit doesn't yet recognize the PyModExport_ multi-phase-init entry point name pyo3 emits for the cp315-abi3.abi3t wheel; the symbol is defined in the extension itself (not imported from libpython), and the same finding reproduces auditing upstream's own published wheel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
unicode-segmentation-rs0.3.3Compiles a pyo3/maturin extension binding the
unicode-segmentation,unicode-width, andunicode-linebreakcrates for grapheme/word/sentence segmentation, line-break, and display-width calculation. Upstream publishes no riscv64 wheel.Mirrors upstream's
ci.ymllinuxjob.Differs from upstream
CIBW_BEFORE_ALL_LINUX- upstream's build images ship it, ours don't.Matrix:
cp310,cp314t,cp315t(not cp312/cp313/cp314/cp314t) -Cargo.tomlenables pyo3'sabi3-py310unconditionally so one wheel serves cp310+,cp314tgets its own per-interpreter wheel since abi3 is disabled under free threading, andcp315topts into theabi3tCargo feature for the forward-compatiblecp315-abi3.abi3ttag - matching the exact three wheels upstream publishes to PyPI.Testing
License: OK
Verified the crate compiles cleanly (
cargo check --features abi3t) on aarch64 macOS, local; the actual manylinux_riscv64 wheel build and pytest run are left to CI (no local riscv64/maturin toolchain).