Crate fmi_schema
source ·Expand description
§fmi-schema
XML schema support for FMI 2.0 and 3.0. This crate is part of rust-fmi.
The reference XSI can be found at https://fmi-standard.org/downloads.
§Determining the FMI version
FMI 2.0 and 3.0 have different XML schemas.
The FMI version can initially be determined in a non-specific way by using [minimal::ModelDescription
].
§Example
let md = fmi_schema::fmi3::Fmi3ModelDescription::from_str(
std::fs::read_to_string("tests/FMI3.xml").unwrap().as_str(),
)
.unwrap();
println!("{}", md.model_name);
§License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
§Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
§Feature flags
fmi2
(enabled by default) — Enable support for FMI 2.0fmi3
(enabled by default) — Enable support for FMI 3.0arrow
— Enable support for Apache Arrow Schema
Modules§
- DateTime support for FMI schema.
- FMI2.0 schema definitions
- FMI3.0 schema definitions
- Minimal FMI definitions for determining FMI version.
- Common traits for FMI schema
Enums§
- The major version of the FMI standard