Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile test suite on windows host #94

Closed
akashihi opened this issue Dec 19, 2021 · 1 comment · Fixed by #101
Closed

Unable to compile test suite on windows host #94

akashihi opened this issue Dec 19, 2021 · 1 comment · Fixed by #101

Comments

@akashihi
Copy link
Contributor

Dev build depends on linux-embedded-hal which brings non-portable crates, such as gpio-cdev, spidev, sysfs-gpio and serial-unix which prevents compilation and execution of unit tests on windows.

As linux-embedded-hal is only used for the example code, both example code build and linux-embedded-hal dependency could be a default feature, which can be disabled on the windows platform.

@caemor
Copy link
Owner

caemor commented Mar 9, 2022

I tried to fix this today by making linux-embedded-hal an optional dev-dependency but this is currently not possible (see rust-lang/cargo#1596).
One possible solution would be the move to an optional dependency which makes it worse from my point of view.
Another solution might be the move to a workspace and to move the examples to their own "crate".

I would be happy to receive some feedback and maybe an even better and more elegant solution for this problem.

EDIT: Should be fixed in #101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants