Cargo Features
[dependencies]
sixtyfps-corelib = { version = "0.1.6", default-features = false, features = ["rtti", "ffi", "std", "unsafe_single_core", "libm", "defmt"] }
- rtti
-
Allow the viewer to query at runtime information about item types
Affects
sixtyfps-corelib::rtti
… - ffi
-
Expose C ABI
Affects
window::ffi
… - std default = instant, lyon_algorithms, lyon_geom, lyon_path, scoped-tls-hkt
-
Use the standard library
Enables std of euclid and once_cell
Affects
backend::Backend.register_font_from_memory
,backend::Backend.register_font_from_path
,item_rendering::ItemRenderer.draw_path
,layout::PathLayoutData
,layout::solve_path_layout
… - default = std
-
The
std
feature is set by default wheneversixtyfps-corelib
is added without
somewhere in the dependency tree.default-features = false - unsafe_single_core
-
Unsafe feature meaning that there is only one core running and all thread_local are static.
You can only enable this feature if you are sure that any API of this crate is only called from a single core, and not in a interrupt or signal handler.Affects
sixtyfps-corelib::unsafe_single_core
… - libm
-
Enables libm of euclid and num-traits
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.
- lyon_path std
-
Enables lyon_path ^0.17.3
- lyon_algorithms std
-
Enables lyon_algorithms ^0.17.1
- lyon_geom std
-
Enables lyon_geom ^0.17.0
- instant std
- scoped-tls-hkt std
- defmt implicit feature