#build-script #spi #mode #pin #serial #digital #cross-compile

nightly build teensy3

Rust interface layer for the Teensy 3.1/3.2 microcontroller

5 releases

Uses old Rust 2015

0.2.0 Apr 17, 2017
0.1.3 Oct 16, 2016
0.1.2 Sep 26, 2016
0.1.1 Sep 26, 2016
0.1.0 Sep 26, 2016

#224 in Build Utils

31 downloads per month

MIT license

28K SLoC

C 17K SLoC // 0.2% comments C++ 10K SLoC // 0.2% comments Arduino C++ 339 SLoC // 0.4% comments Rust 313 SLoC // 0.0% comments GNU Style Assembly 250 SLoC // 0.3% comments

Rust on Teensy3

  • teensy3: Crates.io
  • teensy3-sys: Crates.io


This is a repo for development on the Teensy3 in Rust. This repo is bootstrapped with Teensyduino bindings, generated by rust-bindgen.

Getting Started

This crate is meant to be consumed by a binary for a PJRC Teensy 3.1 or 3.2. Support for Teensy 3.0, 3.5, and 3.6 boards is planned, but not implemented.

To use this crate, please see this demo repo which can be used as a template for your project.

Package layout

  • teensy3-sys - This crate contains the C/C++ code and the Rust bindings against them. All items are generally unsafe, and not idiomatic rust.
  • teensy3 - This crate contains any ergonomic wrappers around teensy3-sys components, as well as any pure rust reimplementations of other components. teensy3-sys is re-exported as teensy3::bindings.


Thanks, Citiations

This code is nearly entirely thanks to these resources:


Rust contributions are licensed under the MIT License.

Please Note: ASM, C, C++, and Linker Components of the teensy3-sys crate (a dependency of the teensy3 crate) contain components licensed under the MIT License, PJRC's modified MIT License, and the LGPL v2.1. Please refer to individual components for more details.


Convenience library for Rust development on a Teensy 3.x.

Contains safe and unsafe utilities, bootstrapped by the C++ Teensyduino libraries provided by the manufacturer


~43K SLoC