Closed jubeor-gp closed 1 year ago
Please check out the stable-1.5
branch in the IgH repository. This library works against that branch, not master
.
Hi again,
I get your point checking out the stable-1.5 branch of IgH repository as it is indicated in the readme file. This repo is not responsible for changes in IgH repositories.
The modification I did to this repo code to make it run was to change the hardcoded size of an array and some assertions about it. the error thrown by cargo is E0308 mismatching types error. I might be wrong but the issue that I am facing has to do with rust code.
I am aware that you are an expert in rust while I am just starting. Maybe I mislead you with the title of the issue? In any event, thanks for this repository.
I'm sorry, I don't fully understand your comment. After you switch the IgH code to the stable-1.5
branch, this library should compile fine. One of the changes between stable-1.5
and master
is that they changed the size of the array in question from 32 to 255 items.
You may have to cargo clean
before rebuilding though, I don't think the build system is clever enough to realize that the C header has changed.
First time use with the next setup:
Steps
Just cloned latest version from this repo (
git clone https://github.com/ethercat-rs/ethercat.git
) exporting ETHERCAT_PATH so ethercat-sys can find it:Workaround
Edit convert.rs so the function
string_to_foe_name
admits and returns a 255 array.Now it compiles. All examples run:
I hope this helps.