just started to learn rust and wanted a real project to work on. Since my raspberry-pi only came with a non-pwm fan I wanted to write a small CPU temp monitor/fan control program for the pi.
Now I want to execute some unit tests and having some problems with it. First, some information:
- I am working on MacOS
- I installed compile tools and am using target
armv7-unknown-linux-musleabihf
- (target
gnueabihf
didn't work for me, even though it is mentioned in multiple tutorials) - I use a raspberry-pi 4 B
- I only use one dependency:
rppal = "0.13.1"
Compiling to the raspberry-pi target works like a charm and I can execute it on the pi.
But when I want to execute the tests on my MacOS the rppal
dependency fails to compile.
Now I was wondering if there is a way to run tests with only compiling what is actually needed.