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

sortable-js

Rusty bindings to SortableJS, to build sortable lists in wasm

7 releases

0.1.6+js.1.15.2.patched.1 Jan 14, 2024
0.1.5+js.1.15.0.patched.1 Nov 30, 2022

#189 in WebAssembly

29 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
~181K SLoC