Cargo Features
[dependencies]
firefly-rust = { version = "0.6.0", default-features = false, features = ["std", "alloc", "panic_info", "sudo", "nalgebra_support"] }
- default = alloc, nalgebra_support, panic_info, sudo
-
These default features are set whenever
firefly-rust
is added without
somewhere in the dependency tree.default-features = false - std
-
If disabled, the crate uses no_std.
- alloc default
-
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
… - panic_info default
-
If app panics, show panic info (message, file name, line number).
Increases the binary size. - sudo default
-
Enable support for functions requiring sudo.
Affects
firefly-rust::sudo
… - nalgebra_support default = nalgebra
-
Enable support for casting graphic primitives to and from nalgebra crate primitives.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.