Crates.io | libfmi |
lib.rs | libfmi |
version | 2.2.4 |
source | src |
created_at | 2023-10-10 04:57:55.586723 |
updated_at | 2023-10-18 03:18:30.888076 |
description | Generated C bindings for the FMI standard. |
homepage | https://github.com/Nikita240/fmu-runner-rs |
repository | https://github.com/Nikita240/fmu-runner-rs |
max_upload_size | |
id | 998782 |
size | 92,332 |
Generated Rust fmi-standard bindings.
This crate also includes a variadic logging handler as inspired by rust-fmi.
use libfmi::Fmi2Dll;
let fmi = unsafe { Fmi2Dll::new("../tests/fmu/bouncing_ball/binaries/linux64/bouncing_ball.so") }?;
let version = unsafe { fmi.fmi2GetVersion() };
println!("FMI version: {:?}", unsafe {
std::ffi::CStr::from_ptr(version)
});