allow patch level updates for deps

This commit is contained in:
2022-10-22 15:31:50 +02:00
parent ed30bef4aa
commit 0f21203d27
5 changed files with 227 additions and 78 deletions

View File

@ -7,7 +7,7 @@ authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
[dependencies]
crossbeam-channel = "0.5"
delegate = "0.8"
zerocopy = "0.6.1"
zerocopy = "0.6"
[dependencies.spacepackets]
path = "../spacepackets"

View File

@ -1,6 +1,7 @@
#![allow(dead_code)]
use crossbeam_channel::{bounded, Receiver, Sender};
use std::thread;
use zerocopy::{FromBytes, AsBytes, Unaligned, U16, NetworkEndian};
use zerocopy::{AsBytes, FromBytes, NetworkEndian, Unaligned, U16};
trait FieldDataProvider: Send {
fn get_data(&self) -> &[u8];
@ -29,14 +30,14 @@ type FieldDataTraitObj = Box<dyn FieldDataProvider>;
struct ExampleMgmSet {
mgm_vec: [f32; 3],
temperature: u16
temperature: u16,
}
#[derive(FromBytes, AsBytes, Unaligned)]
#[repr(C)]
struct ExampleMgmSetZc {
mgm_vec: [u8; 12],
temperatur: U16<NetworkEndian>
temperatur: U16<NetworkEndian>,
}
fn main() {