#gamedev #firefly-zero #api-bindings

no-std firefly-rust

Rust SDK for making Firefly Zero games

11 releases (6 breaking)

new 0.7.0 Nov 24, 2024
0.6.0 Nov 16, 2024
0.5.0 Oct 19, 2024
0.4.0 Oct 5, 2024
0.1.2 May 6, 2024

#55 in Rendering

Download history 26/week @ 2024-09-15 15/week @ 2024-09-22 115/week @ 2024-09-29 57/week @ 2024-10-06 96/week @ 2024-10-13 55/week @ 2024-10-20 4/week @ 2024-10-27 11/week @ 2024-11-03 65/week @ 2024-11-10 57/week @ 2024-11-17

139 downloads per month

MIT license

91KB
2.5K SLoC

firefly-rust

Rust SDK for making Firefly Zero games.

Installation

cargo add firefly_rust

Cargo features

  • std: required if you don't build your project with #![no_std]. It will remove from the crate the custom panic handler to avoid conflicts with the standard library.
  • alloc: required if you want to use FileBuf. Allows the crate to do memory allocations. If you enable alloc but not std, you have to also provide a global allocator. The easiest way to do so is to activate the talc feature (see below).
  • talc: enable a global talc-powered allocator. The same as the alloc feature but you don't have to configure an allocator yourself.
  • sudo: required if you want to use sudo module. Enables privileged access to the Firefly Zero device.
  • nalgebra: can be activated if you use nalgebra. Enables type conversion to and from nalgebra vectors.

License

MIT License. You can do whatever you want with the SDK, modify it, embed into any apps and games. Have fun!

Dependencies

~0–670KB
~13K SLoC