Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
922801cc74 | |||
![]() |
f5717d98cd
|
||
6ea7b8902a | |||
![]() |
f6ac9ee918 |
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -53,6 +53,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
components: rustfmt
|
||||||
- run: cargo fmt --all -- --check
|
- run: cargo fmt --all -- --check
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
@@ -69,4 +71,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
components: clippy
|
||||||
- run: cargo clippy -- -D warnings
|
- run: cargo clippy -- -D warnings
|
||||||
|
@@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
|
|
||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
# [v0.16.1] 2025-09-26
|
||||||
|
|
||||||
|
## Fixed
|
||||||
|
|
||||||
|
`SpHeader::packet_len` is public now.
|
||||||
|
|
||||||
# [v0.16.0] 2025-09-24
|
# [v0.16.0] 2025-09-24
|
||||||
|
|
||||||
- Bump Rust MSRV to v1.83
|
- Bump Rust MSRV to v1.83
|
||||||
@@ -644,7 +650,8 @@ The timestamp of `PusTm` is now optional. See Added and Changed section for deta
|
|||||||
Initial release with CCSDS Space Packet Primary Header implementation and basic PUS TC and TM
|
Initial release with CCSDS Space Packet Primary Header implementation and basic PUS TC and TM
|
||||||
implementations.
|
implementations.
|
||||||
|
|
||||||
[unreleased]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.16.0...HEAD
|
[unreleased]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.16.1...HEAD
|
||||||
|
[v0.16.1]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.16.0...v0.16.1
|
||||||
[v0.16.0]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.15.0...v0.16.0
|
[v0.16.0]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.15.0...v0.16.0
|
||||||
[v0.15.0]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.14.0...v0.15.0
|
[v0.15.0]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.14.0...v0.15.0
|
||||||
[v0.14.0]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.13.1...v0.14.0
|
[v0.14.0]: https://egit.irs.uni-stuttgart.de/rust/spacepackets/compare/v0.13.1...v0.14.0
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "spacepackets"
|
name = "spacepackets"
|
||||||
version = "0.16.0"
|
version = "0.16.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.83"
|
rust-version = "1.83"
|
||||||
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
|
||||||
|
5
justfile
5
justfile
@@ -1,4 +1,4 @@
|
|||||||
all: check build test clippy fmt docs coverage
|
all: check build embedded test clippy fmt docs coverage
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
cargo clippy -- -D warnings
|
cargo clippy -- -D warnings
|
||||||
@@ -9,6 +9,9 @@ fmt:
|
|||||||
check:
|
check:
|
||||||
cargo check --all-features
|
cargo check --all-features
|
||||||
|
|
||||||
|
embedded:
|
||||||
|
cargo build --target thumbv7em-none-eabihf --no-default-features
|
||||||
|
|
||||||
test:
|
test:
|
||||||
cargo nextest r --all-features
|
cargo nextest r --all-features
|
||||||
cargo test --doc
|
cargo test --doc
|
||||||
|
@@ -506,7 +506,7 @@ impl SpHeader {
|
|||||||
|
|
||||||
/// Retrieve the total packet size based on the data length field
|
/// Retrieve the total packet size based on the data length field
|
||||||
#[inline]
|
#[inline]
|
||||||
fn packet_len(&self) -> usize {
|
pub fn packet_len(&self) -> usize {
|
||||||
usize::from(self.data_len()) + Self::HEADER_LEN + 1
|
usize::from(self.data_len()) + Self::HEADER_LEN + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -584,6 +584,11 @@ impl CcsdsPacket for SpHeader {
|
|||||||
self.version
|
self.version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[inline]
|
||||||
|
fn packet_len(&self) -> usize {
|
||||||
|
self.packet_len()
|
||||||
|
}
|
||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn packet_id(&self) -> PacketId {
|
fn packet_id(&self) -> PacketId {
|
||||||
self.packet_id
|
self.packet_id
|
||||||
|
Reference in New Issue
Block a user