tock / tockloader-rs

MIT License
4 stars 6 forks source link

Tockloader-rs: v0.1.0 release candidate #11

Open george-cosma opened 2 weeks ago

george-cosma commented 2 weeks ago

Tockloader-rs: v0.1.0 release candidate

Overview

This pull request contains all of the necessary features for an initial alpha release of tockloader-rs. Here is a comprehensive list of all major features:

Technical Details

Inspired by probe-rs, we decided to extend the usability of tockloader from a CLI to both a CLI and a rust library which can then be used by users however they see fit. This can be useful in creating bespoke user interfaces and will aid in automation.

The tockloader-lib was designed with partial connection agnosticism in mind. This means that the library can be used with either a bootloader connection or a probe-rs connection. This is achieved by using the Connection enum. Implementation as a trait was considered, but deemed unnecessary due to the fact that the two connections are fundamentally different and would require different implementations of the same functions.

The error handling in the library is comprehensive and should provide the user with enough information to diagnose any issues that may arise. The error handling is based on the thiserror crate for the library and the anyhow crate for the CLI. In the (very near) future, we will be looking into logging to provide the user with additional information.

Future plans

Tockloader-rs is certainly not finished. Here are some of the features that we are planning to implement in the future:

Acknowledgements

This project would not have been possible without the help of @micuami and @NegrilaRares who have worked tirelessly to get this project to where it is now. We would also like to thank @CAmi307 for her work on the new protocol and for the ratatui library which we have used to implement the tockloader listen command.