libfmi

Crates.iolibfmi
lib.rslibfmi
version2.2.4
sourcesrc
created_at2023-10-10 04:57:55.586723
updated_at2023-10-18 03:18:30.888076
descriptionGenerated C bindings for the FMI standard.
homepagehttps://github.com/Nikita240/fmu-runner-rs
repositoryhttps://github.com/Nikita240/fmu-runner-rs
max_upload_size
id998782
size92,332
Nikita Rushmanov (Nikita240)

documentation

README

libfmi

Crates.io Documentation Crates.io

Generated Rust fmi-standard bindings.

This crate also includes a variadic logging handler as inspired by rust-fmi.

Example

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)
});

Commit count: 24

cargo fmt