-
Hi, I am Andrew, a software developer, working on a project involving PLCs. We would like to be able to use Rusty to run our PLC code on microcontrollers and computers. I work mostly in Rust, and my colleague, Asterios, works mostly on the PLCs in ST, so this is a good fit for us. I appreciate the effort you have put into this project, and would be interested in supporting and helping to improve it. To get started, we have a few questions, mostly about the json description file:
Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello Andrew, Thank you for your interest in the project.
The files section of the JSON is where all the files to compile will go, these are typically your project source files, not the libraries.
The library has to be compiled to your target arch, this for now will have to be a system with rust std support. {
"name" : "iec61131std",
"path" : "/path/to/lib/binaries",
"package" : "System",
"include_path" : [
"/path/to/lib/include/*.st"
]
}
Hope this was helpful. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Ghaith, Thank you very much for your detailed reply. That is very helpful. I will be testing this, and intend to implement a basic microcontroller runtime in Rust. I will have to look at no_std support for this use case. Regards, |
Beta Was this translation helpful? Give feedback.
Hello Andrew,
Thank you for your interest in the project.
The build description file was added recently to make it easier to build full projects with multiple library dependencies.
It will eventually still change to make things clearer and easier, however, the main concept is that anything done in the build description can also be done using the normal
rustyc
commandThe files section of the JSON is where all the files to compile will go, these are typically your project source files, not the libraries.
ST…