renamed host module to std module
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
Some checks failed
Rust/sat-rs/pipeline/pr-main There was a failure building this commit
This commit is contained in:
parent
e3043ce2d7
commit
51e31f70f7
@ -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;
|
@ -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;
|
||||
|
5
satrs-core/src/hal/std/mod.rs
Normal file
5
satrs-core/src/hal/std/mod.rs
Normal 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;
|
@ -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,
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -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};
|
Loading…
Reference in New Issue
Block a user