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

#32 in #import

Download history 5/week @ 2025-09-09 28/week @ 2025-09-16 38/week @ 2025-09-23 75/week @ 2025-09-30 20/week @ 2025-10-07 54/week @ 2025-10-14 60/week @ 2025-10-21 28/week @ 2025-10-28 24/week @ 2025-11-04 25/week @ 2025-11-11 26/week @ 2025-11-18 23/week @ 2025-11-25 28/week @ 2025-12-02

102 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–8MB
~154K SLoC