Registry Mirror
Skip to content

Conversation

@luozhouyang

Copy link
Copy Markdown
Owner

Summary

  • Reimplement every algorithm in Rust (crates/strsimpy-core) and expose them through PyO3 (crates/strsimpy-py).
  • Package with maturin while preserving the strsimpy API, root exports, and per-module imports.
  • Add abi3 wheel builds for Linux, macOS, and Windows plus an sdist in the release workflow.
  • Enforce Black formatting and Ruff RUF022 (__all__ ordering) in CI.
  • Expand Python tests, add Rust unit tests, and update the README/changelog for 0.4.0.

Verification

  • cargo test --workspace --locked: 64 passed
  • pytest: 72 passed, 20 subtests
  • black --check python tests, ruff check --select RUF022 python tests
  • maturin build --release --locked, maturin sdist, twine check
  • Wheel installed and tested on Python 3.10, 3.12, and 3.13

🤖 Generated with Claude Code

- Add a pure Rust workspace (strsimpy-core) implementing every algorithm.
- Add PyO3 bindings (strsimpy._strsimpy) and keep the Python package API,
  root exports, and per-module imports compatible.
- Build with maturin; publish abi3 wheels and an sdist to PyPI.
- Fix OptimalStringAlignment empty-string handling and SorensenDice
  division by zero; align NGram loop bounds with upstream.
- Rewrite CI for Rust checks, Black formatting, Ruff RUF022, and Python
  3.10-3.13; build and smoke-test distributions.
- Expand the Python tests and add Rust unit tests.
- Update README and changelog for 0.4.0.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@luozhouyang
luozhouyang merged commit 0160b33 into master Nov 5, 2026
6 checks passed
@luozhouyang
luozhouyang deleted the rust-rewrite-v0.4.0 branch November 5, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant