8 stable releases (4 major)

4.0.2 Mar 11, 2024
4.0.1 Mar 10, 2024
3.1.0 Mar 2, 2024
3.0.2 Jun 7, 2023
0.1.0 Dec 14, 2021

#57 in #folder

Download history 25/week @ 2025-03-12 2/week @ 2025-03-19 13/week @ 2025-03-26 5/week @ 2025-04-09 9/week @ 2025-04-16 23/week @ 2025-04-23 4/week @ 2025-04-30 16/week @ 2025-05-07 22/week @ 2025-05-14 22/week @ 2025-06-11 18/week @ 2025-06-18 27/week @ 2025-06-25

67 downloads per month
Used in 21 crates (12 directly)

MIT license

24KB
640 lines

Simulink C Rust wrapper and binder

A Rust library to import generated C code from Simulink in Rust

Example

let sys = Sys::new(Some("MySimulinkController"));
sys.compile().generate_module();

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.

Dependencies

~6–8.5MB
~154K SLoC