I have written a RESTful API wrapper for cgminer in Rust:
https://github.com/brndnmtthws/cgminer-restPlease check it out and provide any feedback you might have on GitHub.
My goal (someday) is to get ASIC/miner vendors to standardize around an API to make it easier to build high quality tooling for managing miners.
Cheers!
It already is a standard API - that I wrote.
All the large vendors use the equivalent of my API code (or my actual API code) in their miners.
The differences are Bitmain who broke compatibility by changing the field names and scale for hash rates and changing the data format for LST but the interface is my code even in the Bitmain miners.