/mdloader-rust

A Rust Port of the Massdrop Firmware Loader - for CTRL / ALT / SHIFT / Rocketeer keyboards

Primary LanguageRustGNU General Public License v3.0GPL-3.0

mdloader-rust

A rust port of the Massdrop Firmware Loader - for CTRL / ALT / SHIFT / Rocketeer keyboards.

The rust in the initial commit of this project was generated, in part, by c2rust, with a few exceptions:

  • incbin was replaced with lazy-static-include
  • the applet_data and applet_size generated by incbin here were replaced with applet and applet.len() using lazy-static-include, respectively
  • ATMEL-specific code was placed into the atmel module, under an ATMEL-specific license.

Usage

Note: permissions may need to be given to the /dev port the keyboard uses, which only appears when it is in DFU mode

$ cargo build
$ cargo run

Caveats

This port hasn't been tested on Windows, which the original mdloader supports -- only Linux.

Contribution

Contribution is welcome, just open a pull request.