renamed host module to std module
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit

This commit is contained in:
Robin Müller 2023-09-16 21:28:22 +02:00
parent e3043ce2d7
commit 51e31f70f7
Signed by: muellerr
GPG Key ID: A649FB78196E3849
7 changed files with 10 additions and 8 deletions

View File

@ -1,4 +0,0 @@
//! Helper modules intended to be used on hosts with a full [std] runtime
pub mod tcp_server;
mod tcp_with_cobs_server;
pub mod udp_server;

View File

@ -1,4 +1,4 @@
//! # Hardware Abstraction Layer module
#[cfg(feature = "std")]
#[cfg_attr(doc_cfg, doc(cfg(feature = "std")))]
pub mod host;
pub mod std;

View File

@ -0,0 +1,5 @@
//! Helper modules intended to be used on systems with a full [std] runtime.
pub mod tcp_server;
pub mod udp_server;
mod tcp_with_cobs_server;

View File

@ -1,3 +1,4 @@
//! Generic TCP TMTC servers with different TMTC format flavours.
use alloc::vec;
use alloc::{boxed::Box, vec::Vec};
use std::net::SocketAddr;
@ -7,7 +8,7 @@ use crate::tmtc::{ReceivesTc, TmPacketSource};
use thiserror::Error;
// Re-export the TMTC in COBS server.
pub use crate::hal::host::tcp_with_cobs_server::{
pub use crate::hal::std::tcp_with_cobs_server::{
parse_buffer_for_cobs_encoded_packets, TcpTmtcInCobsServer,
};

View File

@ -8,7 +8,7 @@ use std::io::Write;
use std::net::ToSocketAddrs;
use std::vec::Vec;
use crate::hal::host::tcp_server::TcpTmtcServerBase;
use crate::hal::std::tcp_server::TcpTmtcServerBase;
use crate::tmtc::ReceivesTc;
use crate::tmtc::TmPacketSource;

View File

@ -1,4 +1,4 @@
//! UDP server helper components
//! Generic UDP TC server.
use crate::tmtc::{ReceivesTc, ReceivesTcCore};
use std::boxed::Box;
use std::io::{Error, ErrorKind};