#web-ui #wasm-bindings #api-bindings

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

#637 in WebAssembly

Download history 5/week @ 2024-01-08 10/week @ 2024-02-26 3/week @ 2024-03-11 99/week @ 2024-03-18 8/week @ 2024-04-01

107 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

~6.5–9MB
~172K SLoC