mirror of
https://github.com/hubaldv/bioz-host-rs.git
synced 2025-12-06 05:11:17 +00:00
Initial commit, copied examples from postcard-rpc repo.
This commit is contained in:
14
src/lib.rs
Normal file
14
src/lib.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
#![deny(missing_debug_implementations)]
|
||||
|
||||
pub mod client;
|
||||
pub use bioz_icd as icd;
|
||||
|
||||
pub async fn read_line() -> String {
|
||||
tokio::task::spawn_blocking(|| {
|
||||
let mut line = String::new();
|
||||
std::io::stdin().read_line(&mut line).unwrap();
|
||||
line
|
||||
})
|
||||
.await
|
||||
.unwrap()
|
||||
}
|
||||
Reference in New Issue
Block a user