This might be due to trying to use read_to_end (which would never return if the server keeps the connection open after processing your request) rather than parsing the response headers and then reading exactly Content-Length bytes. On a related note have you seen arti? This is a rust implementation of tor by the tor project developers themself that you can embed in your project without needing to use socks. Using it likely won't fix your issue, but when you have fixed your issue using it may be more convenient than having to install tor separately.
Maybe arti has a native dependency you haven't installed yet? Could you post the part before that error message? That should contain an indication of which library is missing.