Cargo Features

firefly-rust has no features set by default.

[dependencies]
firefly-rust = { version = "0.7.0", features = ["std", "alloc", "talc", "panic_info", "sudo", "nalgebra"] }
std = alloc

If disabled, the crate uses no_std.

alloc panic_info? std? talc?

Enable support for allocating functions, like load_file_buf.
Requires a global allocator to be configured.

Affects fs::FileBuf, fs::load_file_buf, canvas::CanvasBuf, sudo::DirBuf, sudo::load_file_buf

talc = alloc

If enabled, add talc-powered global allocator.

Enables talc

panic_info = alloc

If app panics, show panic info (message, file name, line number).
Increases the binary size.

sudo

Enable support for functions requiring sudo.

Affects firefly-rust::sudo

nalgebra

Enable support for casting graphic primitives to and from nalgebra crate primitives.

Enables nalgebra