fit_file
FIT file parser written in Rust. FIT (Flexible and Interoperable Data Transfer) is a binary file format that is commonly used to exchange fitness data, such as that from a sports watch or bike computer.
This implementation uses a callback, as shown in the example below. The callback is an efficient method for dealing with large files as it allows us to avoid returning a large array containing each of the records that was processed.
Example
use fit_file as fit;
use fit_file;
/// Called for each record message as it is processed.
/// Context structure. An instance of this will be passed to the parser and ultimately to the callback function so we can use it for whatever.
Current Status
Work in progress.
Revision History
- 0.5.0 - Supports the Length message.
- 0.4.0 - Returns developer defined fields, though doesn't really do anything with them.
- 0.3.0 - Fixed numerous issues interpreting the specification. Now passing with several Garmin test files, instead of just the original Wahoo test file.
- 0.2.0 - Updated critical message structures by implementing a code generator that is just barely good enough.
- 0.1.0 - Basic functionality, can extract position and timestamp data for run and cycling activities.
License
This project is licensed under the MIT license.