Merge remote-tracking branch 'origin/main' into refactoring-ecss-packet-mods
All checks were successful
Rust/spacepackets/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-07-10 10:30:26 +02:00
commit ba22618449
3 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,10 @@ categories = ["aerospace", "aerospace::space-protocols", "no-std", "hardware-sup
zerocopy = "0.6"
crc = "3"
delegate = ">=0.8, <0.11"
thiserror = "1"
[dependencies.thiserror]
version = "1"
optional = true
[dependencies.num_enum]
version = "0.6"
@ -41,7 +44,7 @@ version = "1"
[features]
default = ["std"]
std = ["chrono/std", "chrono/clock", "alloc"]
std = ["chrono/std", "chrono/clock", "alloc", "thiserror"]
serde = ["dep:serde", "chrono/serde"]
alloc = ["postcard/alloc", "chrono/alloc"]

View File

@ -65,8 +65,7 @@ use crate::ecss::CCSDS_HEADER_LEN;
use core::fmt::{Debug, Display, Formatter};
use crc::{Crc, CRC_16_IBM_3740};
use delegate::delegate;
#[cfg(not(feature = "std"))]
use num_traits::Unsigned;
#[cfg(feature = "std")]
use std::error::Error;

View File

@ -3,7 +3,6 @@
//!
//! The core data structure to do this is the [TimeProviderCcsdsEpoch] struct.
use super::*;
use crate::time::std_mod::StdTimestampError;
use chrono::Datelike;
use core::fmt::Debug;
use core::ops::{Add, AddAssign};