Make the std feature optional in sixtyfps-rs

And tweak the MCU backend dependencie
This commit is contained in:
Olivier Goffart 2021-11-30 10:35:59 +01:00 committed by Olivier Goffart
parent bf84bb2ab6
commit 6004c4ee2f
5 changed files with 19 additions and 16 deletions

View file

@ -51,6 +51,7 @@ impl sixtyfps_corelib::backend::Backend for Backend {
})
}
#[cfg(feature = "simulator")]
fn register_font_from_memory(
&'static self,
_data: &'static [u8],
@ -59,6 +60,7 @@ impl sixtyfps_corelib::backend::Backend for Backend {
Err("Not implemented".into())
}
#[cfg(feature = "simulator")]
fn register_font_from_path(
&'static self,
_path: &std::path::Path,