#run-time #spine #api #transpiled #libc


Spine runtime for Rust (and wasm!) transpiled from the official C Runtime

17 unstable releases (7 breaking)

0.8.0 May 5, 2024
0.7.1 Mar 18, 2024
0.7.0 Nov 15, 2023
0.6.0 Jul 9, 2023
0.5.0 Nov 15, 2022

#63 in WebAssembly

Download history 172/week @ 2024-03-14 33/week @ 2024-03-21 30/week @ 2024-03-28 12/week @ 2024-04-04 232/week @ 2024-05-02 39/week @ 2024-05-09 31/week @ 2024-05-16 104/week @ 2024-05-23 157/week @ 2024-05-30 145/week @ 2024-06-06 121/week @ 2024-06-13 130/week @ 2024-06-20 105/week @ 2024-06-27

515 downloads per month
Used in bevy_spine

Custom license

37K SLoC


Spine runtime for Rust (and wasm!) transpiled from the official C Runtime.

rusty_spine = "0.8"

Online demo!

Supported Versions

rusty_spine Spine
0.8 4.2
0.1 - 0.7 4.1

Rust API

A Rust API is provided on top of the C API, because working with C APIs directly in Rust is tedious and error prone. It's made to be as thin a wrapper as possible.

The Rust API is mostly stable, but does not support the Timeline API or custom attachment loaders. A few accessors might be missing as well. Most projects do not need these, but if your's does, please open an issue.

Rust API Documentation


If you wish to use the C API directly (either because the Rust API lacks a feature or for performance reasons), it is available under the rusty_spine::c import. See the C example.

C API Documentation

Engine Integrations

To integrate into your own engine, see the miniquad example


Because this project uses the official Spine Runtime, you must follow the Spine Runtimes License Agreement. If using the libc crate (via the libc feature), then see the libc crate for licensing. If using the built-in (wasm compatible) libc implementation, you must follow the BSD 3-clause license of The Regents of the University of California. See the LICENSE file for complete licenses. The Rust code is licensed under dual MIT / Apache-2.0 but with no attribution necessary. All contributions must agree to this licensing.



Default: no

A small subset of libc is provided in this repo to avoid a dependency on libc and to allow the code to run in the wasm32-unknown-unknown target. However, it's possible to rely on the OS implementation of libc instead by using the libc feature.


Default: yes

Provides helper functions for generating mesh data, as well as the SkeletonController helper struct.


Default: yes

Provides additional math functions using mint.