I think the documentation in https://docs.rs/fmi/latest/fmi/# is outdated, for version 0.0.4. At least I cannot make the example work by copy paste of the code presented there.
I had to adjust the imports and to load an fmu with fmi2.0 I had to run
use fmi::{fmi2::import::Fmi2Import, import};
...
let import: Fmi2Import = import::new::<File,Fmi2Import>(fmu_file).unwrap();
Hi! Thanks for the great work in this package!
I think the documentation in https://docs.rs/fmi/latest/fmi/# is outdated, for version 0.0.4. At least I cannot make the example work by copy paste of the code presented there.
I had to adjust the imports and to load an fmu with fmi2.0 I had to run
Maybe I'm doing something wrong...