#web-ui #wasm-bindings #sortable #list #api-bindings #exception #build

sortable-js

Rusty bindings to SortableJS, to build sortable lists in wasm

9 releases

0.1.8+js.1.15.6.patched.1 Nov 29, 2024
0.1.7+js.1.15.4.patched.1 Nov 25, 2024
0.1.6+js.1.15.2.patched.1 Jan 14, 2024
0.1.5+js.1.15.0.patched.1 Nov 30, 2022

#192 in WebAssembly

Download history 4/week @ 2024-09-20 22/week @ 2024-09-27 3/week @ 2024-10-04 137/week @ 2024-11-22 153/week @ 2024-11-29

290 downloads per month

MIT license

130KB
3K SLoC

JavaScript 3K SLoC // 0.1% comments Rust 264 SLoC // 0.0% comments

SortableJS-rs

This crate provides rusty bindings to SortableJS.

The documentation mostly lives with the official SortableJS documentation.

Just adding this crate as a dependency should be enough to get everything working when using trunk. Just be careful to keep alive the return value of Sortable::apply, or you will get JavaScript exceptions.

You can find example usage of SortableJS from a pure-Rust WASM application in the examples/ directory.


lib.rs:

This crate provides rusty bindings to SortableJS.

The documentation mostly lives with the official SortableJS documentation.

Just adding this crate as a dependency should be enough to get everything working when using trunk. Just be careful to keep alive the return value of Sortable::apply, or you will get JavaScript exceptions.

You can find example usage of SortableJS from a pure-Rust WASM application in the examples/ directory.

Dependencies

~7.5–10MB
~182K SLoC