#generated-bindings #component #servo #bindgen #teensy3 #teensyduino #asm-c-cpp-linker

sys teensy3-sys

Servo Bindgen generated bindings, and Teensyduino ASM/C/CPP/Linker components

2 unstable releases

Uses old Rust 2015

0.2.0 Apr 17, 2017
0.1.0 Sep 26, 2016

#38 in #servo


Used in teensy3

MIT/LGPL-2.1

1MB
28K SLoC

C 17K SLoC // 0.2% comments C++ 10K SLoC // 0.2% comments Arduino C++ 340 SLoC // 0.4% comments GNU Style Assembly 251 SLoC // 0.3% comments Rust 121 SLoC // 0.1% comments

Rust on Teensy3

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

Documentation

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.

Dependencies

Thanks, Citiations

This code is nearly entirely thanks to these resources:

License

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.

No runtime deps

~0–2.1MB
~43K SLoC