use concrete git branch dependency

This commit is contained in:
Robin Müller 2023-01-02 23:54:59 +01:00
parent c03c88a85d
commit e85e953c93
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
4 changed files with 30 additions and 15 deletions

17
Cargo.lock generated
View File

@ -568,7 +568,7 @@ dependencies = [
"postcard",
"serde",
"serde_json",
"spacepackets",
"spacepackets 0.3.1 (git+https://egit.irs.uni-stuttgart.de/rust/spacepackets.git?branch=all_features)",
"zerocopy",
]
@ -581,7 +581,7 @@ dependencies = [
"delegate",
"satrs-core",
"satrs-mib",
"spacepackets",
"spacepackets 0.3.1 (git+https://egit.irs.uni-stuttgart.de/rust/spacepackets.git?branch=all_features)",
"zerocopy",
]
@ -696,6 +696,19 @@ dependencies = [
"zerocopy",
]
[[package]]
name = "spacepackets"
version = "0.3.1"
source = "git+https://egit.irs.uni-stuttgart.de/rust/spacepackets.git?branch=all_features#ae55c394bb2455eed3b05a5b587048a931d27238"
dependencies = [
"chrono",
"crc",
"delegate",
"num-traits",
"serde",
"zerocopy",
]
[[package]]
name = "spin"
version = "0.9.4"

View File

@ -39,7 +39,8 @@ default-features = false
optional = true
[dependencies.spacepackets]
path = "../spacepackets"
git = "https://egit.irs.uni-stuttgart.de/rust/spacepackets.git"
branch = "all_features"
default-features = false
[dev-dependencies]

View File

@ -104,7 +104,7 @@ pub use stdmod::{
};
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
pub enum Subservices {
pub enum Subservice {
TmAcceptanceSuccess = 1,
TmAcceptanceFailure = 2,
TmStartSuccess = 3,
@ -115,8 +115,8 @@ pub enum Subservices {
TmCompletionFailure = 8,
}
impl From<Subservices> for u8 {
fn from(enumeration: Subservices) -> Self {
impl From<Subservice> for u8 {
fn from(enumeration: Subservice) -> Self {
enumeration as u8
}
}
@ -347,7 +347,7 @@ impl VerificationReporterBasic {
let tm = self
.create_pus_verif_success_tm(
buf,
Subservices::TmAcceptanceSuccess.into(),
Subservice::TmAcceptanceSuccess.into(),
seq_counter.get(),
&token.req_id,
time_stamp,
@ -377,7 +377,7 @@ impl VerificationReporterBasic {
let tm = self
.create_pus_verif_fail_tm(
buf,
Subservices::TmAcceptanceFailure.into(),
Subservice::TmAcceptanceFailure.into(),
seq_counter.get(),
&token.req_id,
None::<&dyn EcssEnumeration>,
@ -406,7 +406,7 @@ impl VerificationReporterBasic {
let tm = self
.create_pus_verif_success_tm(
buf,
Subservices::TmStartSuccess.into(),
Subservice::TmStartSuccess.into(),
seq_counter.get(),
&token.req_id,
time_stamp,
@ -438,7 +438,7 @@ impl VerificationReporterBasic {
let tm = self
.create_pus_verif_fail_tm(
buf,
Subservices::TmStartFailure.into(),
Subservice::TmStartFailure.into(),
seq_counter.get(),
&token.req_id,
None::<&dyn EcssEnumeration>,
@ -466,7 +466,7 @@ impl VerificationReporterBasic {
) -> Result<(), EcssTmError<E>> {
let tm = self.create_pus_verif_success_tm(
buf,
Subservices::TmStepSuccess.into(),
Subservice::TmStepSuccess.into(),
seq_counter.get(),
&token.req_id,
time_stamp,
@ -492,7 +492,7 @@ impl VerificationReporterBasic {
let tm = self
.create_pus_verif_fail_tm(
buf,
Subservices::TmStepFailure.into(),
Subservice::TmStepFailure.into(),
seq_counter.get(),
&token.req_id,
Some(params.step),
@ -521,7 +521,7 @@ impl VerificationReporterBasic {
let tm = self
.create_pus_verif_success_tm(
buf,
Subservices::TmCompletionSuccess.into(),
Subservice::TmCompletionSuccess.into(),
seq_counter.get(),
&token.req_id,
time_stamp,
@ -550,7 +550,7 @@ impl VerificationReporterBasic {
let tm = self
.create_pus_verif_fail_tm(
buf,
Subservices::TmCompletionFailure.into(),
Subservice::TmCompletionFailure.into(),
seq_counter.get(),
&token.req_id,
None::<&dyn EcssEnumeration>,

View File

@ -12,7 +12,8 @@ zerocopy = "0.6"
csv = "1"
[dependencies.spacepackets]
path = "../spacepackets"
git = "https://egit.irs.uni-stuttgart.de/rust/spacepackets.git"
branch = "all_features"
[dependencies.satrs-core]
path = "../satrs-core"