#ccsds #space-protocols #space #aerospace #packet #packets #ecss

no-std spacepackets

Generic implementations for various CCSDS and ECSS packet standards

31 releases (12 breaking)

0.13.0 Nov 8, 2024
0.11.2 May 19, 2024
0.11.0-rc.0 Mar 4, 2024
0.7.0-beta.3 Dec 13, 2023
0.2.0 Sep 13, 2022

#24 in Science

Download history 5/week @ 2024-08-17 1/week @ 2024-08-24 2/week @ 2024-08-31 281/week @ 2024-09-07 192/week @ 2024-09-14 119/week @ 2024-09-21 216/week @ 2024-09-28 13/week @ 2024-10-05 5/week @ 2024-10-12 365/week @ 2024-11-02 239/week @ 2024-11-09 128/week @ 2024-11-16 152/week @ 2024-11-23 79/week @ 2024-11-30

734 downloads per month
Used in 6 crates (4 directly)

Apache-2.0

620KB
15K SLoC

Crates.io docs.rs ci coverage

ECSS and CCSDS Spacepackets

This package contains generic implementations for various CCSDS (Consultative Committee for Space Data Systems) and ECSS (European Cooperation for Space Standardization) packet standards.

Currently, this includes the following components:

Features

spacepackets supports various runtime environments and is also suitable for no_std environments.

Default features

  • std: Enables functionality relying on the standard library.
  • alloc: Enables features which operate on containers like alloc::vec::Vec. Enabled by the std feature.

Optional Features

  • serde: Adds serde support for most types by adding Serialize and Deserialize derives
  • chrono: Add basic support for the chrono time library.
  • timelib: Add basic support for the time time library.
  • 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.

Miri

You can run the miri tool on this library to check for undefined behaviour (UB). This library does not use use any unsafe code blocks, but miri could still catch UB from used libraries.

cargo +nightly miri nextest run --all-features

Dependencies

~1.3–7MB
~44K SLoC