Training Center XML (TCX) parser written in Rust. TCX is an XML-based file format that is used for exchanging fitness tracking information from runs, bike rides, etc. It builds on Rust's serde deserialization framework.
```rust use tcx;
use std::io::BufReader; use std::fs::File;
fn main() { let result = crate::tcx::readfile("tests/20210119rungarminfenix6.tcx"); let activities = result.activities.unwrap();
for activity in activities.activities {
for lap in activity.laps {
for track in lap.tracks {
for trackpoint in track.trackpoints {
...
}
}
}
}
} ```
It is currently able to parse several example TCX files, specifically ones for running and cycling activities, but does not implement the entire specification.
This project is licensed under the MIT license.