Skip to content

Commit

Permalink
Merge branch 'main' into added-small-defmt-test
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Apr 16, 2024
2 parents 50c56f6 + 944bcf1 commit e1a200e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

# [unreleased]

## Changed

- Moved `CCSDS_HEADER_LEN` constant to the crate root.

# [v0.11.0-rc.2] 2024-04-04

## Changed
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "spacepackets"
version = "0.11.0-rc.2"
edition = "2021"
rust-version = "1.61"
rust-version = "1.65"
authors = ["Robin Mueller <[email protected]>"]
description = "Generic implementations for various CCSDS and ECSS packet standards"
homepage = "https://egit.irs.uni-stuttgart.de/rust/spacepackets"
Expand Down
1 change: 0 additions & 1 deletion src/ecss/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ pub mod tm;
pub mod verification;

pub type CrcType = u16;
pub const CCSDS_HEADER_LEN: usize = size_of::<crate::zc::SpHeader>();

#[derive(Debug, Copy, Clone, Eq, PartialEq, IntoPrimitive, TryFromPrimitive)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ extern crate alloc;
#[cfg(any(feature = "std", test))]
extern crate std;

use crate::ecss::CCSDS_HEADER_LEN;
use core::{
fmt::{Debug, Display, Formatter},
hash::Hash,
Expand All @@ -88,6 +87,8 @@ mod private {
pub trait Sealed {}
}

pub const CCSDS_HEADER_LEN: usize = core::mem::size_of::<crate::zc::SpHeader>();

/// CRC algorithm used by the PUS standard, the CCSDS TC standard and the CFDP standard.
pub const CRC_CCITT_FALSE: Crc<u16> = Crc::<u16>::new(&CRC_16_IBM_3740);

Expand Down

0 comments on commit e1a200e

Please sign in to comment.