Skip to content

Rewrite your app in Rust, piece by piece, checked against the original at every step. Works with TypeScript, JavaScript, Python, Go, Ruby, Java, C, PHP, C#, Kotlin, PowerShell and Swift.

626 B
Raw Blame

textkit-rs

Rust port of src/textkit/, bridged with PyO3. Generated by rust-anything.

Functions

  • slugify (src/textkit/words.py:9)
  • word_counts (src/textkit/words.py:20)
  • chunk (src/textkit/words.py:30)
  • page_count (src/textkit/words.py:37)
  • mean (src/textkit/words.py:42)

Loop

rust-anything record .   # record what the Python code does
rust-anything build .    # build the PyO3 module
rust-anything diff .     # run the recorded cases against Rust
rust-anything shadow .   # run both in the app, log mismatches
rust-anything gate .     # fmt, clippy, tests, unsafe, API, diff