#nannou #creative-coding #framework #applications #foundation #component #headless

no-std nannou_core

The core components of nannou - a creative coding framework for Rust. Ideal for libraries and headless/embedded applications that use nannou.

3 releases (breaking)

0.19.0 Jan 17, 2024
0.18.0 Nov 18, 2021
0.17.0 Jun 20, 2021

#169 in Multimedia

Download history 554/week @ 2024-07-22 512/week @ 2024-07-29 391/week @ 2024-08-05 937/week @ 2024-08-12 624/week @ 2024-08-19 679/week @ 2024-08-26 663/week @ 2024-09-02 802/week @ 2024-09-09 588/week @ 2024-09-16 828/week @ 2024-09-23 578/week @ 2024-09-30 131/week @ 2024-10-07 563/week @ 2024-10-14 540/week @ 2024-10-21 610/week @ 2024-10-28 560/week @ 2024-11-04

2,278 downloads per month
Used in 18 crates (3 directly)

MIT license

150KB
3.5K SLoC

nannou_core

nannou's core abstractions.

This crate aims to be a stripped-down foundation for nannou projects that don't require windowing or wgpu graphics. These might include:

  • Headless applications, e.g. for LASER or lighting control.
  • Embedded applications, e.g. driving motors or LEDs in an art installation.
  • rust-gpu shaders which have strict requirements beyond the limitations of no_std.
  • Hot-loaded dynamic libraries that benefit from faster compilation times.

The crate includes nannou's color, math, geometry and noise abstractions without the deep stack of crates required to establish an event loop, interoperate with wgpu, etc. Another way of describing this crate might be "nannou without the I/O".

Crate [features]

The primary feature of this crate is support for #![no_std]. This means we can use the crate for embedded applications and in some cases rust-gpu shaders.

By default, the std feature is enabled. For compatibility with a #![no_std] environment be sure to disable default features (i.e. default-features = false) and enable the libm feature. The libm feature provides some core functionality required by crates

  • std: Enabled by default, enables the Rust std library. One of the primary features of this crate is support for #![no_std]. This means we can use the crate for embedded applications and in some cases rust-gpu shaders. For compatibility with a #![no_std] environment be sure to disable default features (i.e. default-features = false) and enable the libm feature.
  • libm: provides some core math support in the case that std is not enabled. This feature must be enabled if std is disabled.
  • serde: enables the associated serde serialization/deserialization features in glam, palette and rand.

Dependencies

~7.5MB
~197K SLoC