Torut implements tor control protocol described here
Right now torut does not implement all methods but it gives access to raw calls so you can use it. If something does not work or you would like to see some functionality implemented by design open an issue or PR.
Take a look at security considerations section of
Control module implements all the utilities required to talk to tor instance and to give it some orders or get some info form it.
Onion module implements all utilities required to work with onion addresses both version two and three Support for these may be enabled using cargo features.