MostlyFinished/windmouse-rs ? reverse-engineered prompt

Reverse engineered prompt

Build me a small Rust library called WindMouse that generates realistic mouse movement paths between two screen points.

I want an easy API with sensible defaults, plus a way to customize things like speed, gravity, wind, wait times, max step size, and how close it gets before slowing down near the target. The main thing should be a function that takes a start coordinate and an end coordinate and returns a list of points, including x, y, and a wait time in milliseconds for each step.

Please also include a simple Coordinate type with helpers to create a point and convert it to integer values. Make sure the library feels clean and easy to use from another Rust project, and add a tiny example showing how to generate points and print them out. If you need to check the original WindMouse algorithm details, look them up online and match the general behavior closely.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab