12 stable releases

Uses new Rust 2024

new 2.0.2 Jan 6, 2026
2.0.1 Dec 27, 2025
1.4.0 Nov 12, 2025
1.2.1 Sep 30, 2025
0.2.0 Nov 1, 2024

#879 in Command-line interface

Download history 179/week @ 2025-09-20 327/week @ 2025-09-27 184/week @ 2025-10-04 155/week @ 2025-10-11 199/week @ 2025-10-18 93/week @ 2025-10-25 89/week @ 2025-11-01 195/week @ 2025-11-08 342/week @ 2025-11-15 309/week @ 2025-11-22 343/week @ 2025-11-29 318/week @ 2025-12-06 329/week @ 2025-12-13 293/week @ 2025-12-20 280/week @ 2025-12-27 197/week @ 2026-01-03

1,145 downloads per month
Used in 24 crates (7 directly)

MIT/Apache

9KB
100 lines

semver stable crates.io Documentation License License

This crate is a part of rat-salsa.

Rat-Reloc(ate)

This crate defines the trait RelocatableState

Why?

Many widgets in rat-widget store one or more areas for mouse interaction.

And there are widgets that render other widgets to a temp Buffer and later dump parts of it to the main render Buffer. And then all the stored areas in the widget-state are wrong.

The RelocatableState trait gives the widgets that use such temp Buffers a hook to correct for any movement and clipping that has happened.

Why so complicated?

  • This doesn't affect normal rendering of a widget, it's just and afterthought.
  • The widget doesn't need to know what other widgets exist, it just has to provide the function to relocate its areas after rendering.

Dependencies

~6.5MB
~109K SLoC