This is interesting as an example of just how complicated and elaborate a toolchain you can use to build something dead simple. There’s a lot that comes for free by adding all these libraries and crates and steps. But from what I can tell it comes down to: let _ = if fan_on { fan.set_high() } else { fan.set_low() };
Sure, you could probably make this much smaller if you invented a specialized p2p fan control protocol, but that's a lot of work.