8 releases (breaking)

0.9.0 Nov 1, 2023
0.7.1 Jul 28, 2023
0.6.0 Dec 2, 2022
0.5.0 Oct 17, 2022

#16 in Robotics

Download history 1095/week @ 2023-11-23 1528/week @ 2023-11-30 1501/week @ 2023-12-07 955/week @ 2023-12-14 374/week @ 2023-12-21 482/week @ 2023-12-28 1436/week @ 2024-01-04 1315/week @ 2024-01-11 1389/week @ 2024-01-18 1498/week @ 2024-01-25 1303/week @ 2024-02-01 857/week @ 2024-02-08 3448/week @ 2024-02-15 3854/week @ 2024-02-22 4203/week @ 2024-02-29 3056/week @ 2024-03-07

14,765 downloads per month
Used in foc

MIT license

370KB
2K SLoC

Rust MCAP library

A library for reading and writing Foxglove MCAP files. See the crate documentation for examples.

Design goals

  • Simple APIs: Users should be able to iterate over messages, with each automatically linked to its channel, and that channel linked to its schema. Users shouldn't have to manually track channel and schema IDs.

  • Performance: Writers shouldn't hold large buffers (e.g., the current chunk) in memory. Readers should support memory-mapped files to avoid needless copies and to let the OS do what it does best: loading and caching large files based on how you're actually reading them.

  • Resilience: Like MCAP itself, the library should let you recover every valid message from an incomplete file or chunk.

Building

By default this package will build with zstd compression support enabled. To build without the zstd dependency pass the --no-default-features flag:

cargo build --no-default-features

Dependencies

~2–3MB
~63K SLoC