Updated crates for the daemon part

This commit is contained in:
Sebastian 2025-12-23 14:36:31 +01:00
parent cfd7b79eac
commit 475e9621a1
6 changed files with 21 additions and 36 deletions

View file

@ -1,22 +1,19 @@
use anyhow::Result;
use bytes::{BufMut, BytesMut};
use futures::{stream::StreamExt, SinkExt};
use log::{debug, error, info, warn};
use postcard::{from_bytes_cobs, to_stdvec_cobs};
use radomctl_protocol::{HostMessage, PositionTarget, RadomMessage};
use std::{env, io, str, time::Duration};
use tokio::time::sleep;
use std::{io, time::Duration};
use tokio::{
self,
io::{AsyncBufReadExt, AsyncWriteExt, BufStream},
net::{TcpListener, TcpStream},
sync::{self, mpsc, watch},
io::AsyncBufReadExt,
sync::{mpsc, watch},
time,
};
use tokio_serial::SerialPortBuilderExt;
use tokio_util::codec::{Decoder, Encoder};
use crate::rotctlprotocol::{parse_command, Command};
use crate::rotctlprotocol::Command;
struct ProtocolCodec;