2 unstable releases

0.2.0 Nov 26, 2024
0.1.0 Sep 11, 2024

#255 in Science

Download history 100/week @ 2024-09-06 25/week @ 2024-09-13 6/week @ 2024-09-20 2/week @ 2024-09-27 5/week @ 2024-10-11 2/week @ 2024-10-18 5/week @ 2024-11-01 2/week @ 2024-11-08 121/week @ 2024-11-22 17/week @ 2024-11-29

141 downloads per month

Apache-2.0

285KB
6K SLoC

Crates.io docs.rs ci coverage

cfdp-rs - High level Rust crate for CFDP components

The cfdp-rs Rust crate offers some high-level CCSDS File Delivery Protocol (CFDP) components to perform file transfers according to the CCSDS Blue Book 727.0-B-5. The underlying base packet library used to generate the packets to be sent is the spacepackets library.

Features

The goal of this library is to be flexible enough to support the use-cases of both on-board software and of ground software. It has support to make integration on std systems as simple as possible, but also has sufficient abstraction to allow for integration onno_std environments and can be used on these systems as well as long as the alloc feature is activated.

Please note even though the alloc feature is required for the core handlers, these components will only allocate memory at initialization time and thus are still viable for systems where run-time allocation is prohibited.

Default features

  • std: Enables functionality relying on the standard library.
  • alloc: Enables features which require allocation support. Enabled by the std feature.

Optional Features

  • serde: Adds serde support for most types by adding Serialize and Deserialize derives
  • defmt: Add support for the defmt by adding the defmt::Format derive on many types.

Examples

You can check the documentation of individual modules for various usage examples.

Coverage

Coverage was generated using grcov. If you have not done so already, install the llvm-tools-preview:

rustup component add llvm-tools-preview
cargo install grcov --locked

After that, you can simply run coverage.py to test the project with coverage. You can optionally supply the --open flag to open the coverage report in your webbrowser.

Dependencies

~2–7.5MB
~60K SLoC