jondo2010 / rust-fmi

A Rust interface to FMUs (Functional Mockup Units) that follow the FMI Standard
Apache License 2.0
13 stars 2 forks source link

Documentation may be outdated #51

Open clagms opened 3 months ago

clagms commented 3 months ago

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

use fmi::{fmi2::import::Fmi2Import, import};
...
let import: Fmi2Import = import::new::<File,Fmi2Import>(fmu_file).unwrap();

Maybe I'm doing something wrong...

jondo2010 commented 1 month ago

Thanks for the issue, I'll take a look in the next few days.