simulink-rs

Crates.iosimulink-rs
lib.rssimulink-rs
version4.0.2
sourcesrc
created_at2021-12-14 22:15:05.108219
updated_at2024-03-11 01:05:10.724921
descriptionSimulink C to Rust library builder
homepage
repositoryhttps://github.com/rconan/simulink-rs
max_upload_size
id497958
size35,619
Rod Conan (rconan)

documentation

https://docs.rs/simulink-rs

README

Simulink C to Rust library wrapper and binder

The template directory contains the blueprint for importing generated C code from Simulink into Rust.

Simply copy and rename the template directory, then:

  • in Cargo.toml, set the package name,
  • copy all the Simulink source (.c) and header (.h) files into the sys folder,
  • in build.rs, pass the name of the Rust structure that will implement the Rust version of the Simulink controller as argument to simulink_rs::Sys::new(Some("...")),

and finally run cargo build to check that the new crate is build without errors.

Commit count: 10

cargo fmt