mirror of
https://github.com/OMGeeky/gdriver2.git
synced 2026-02-15 22:14:31 +01:00
Initial prototype
This prototype has basic IPC working, with starting actions and waiting for actions or just getting information
This commit is contained in:
23
gdriver-backend/src/main.rs
Normal file
23
gdriver-backend/src/main.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
use futures::{future, prelude::*};
|
||||
use std::net::SocketAddr;
|
||||
use tarpc::{
|
||||
context,
|
||||
server::{self, incoming::Incoming, Channel},
|
||||
tokio_serde::formats::Json,
|
||||
};
|
||||
mod prelude;
|
||||
use crate::prelude::*;
|
||||
pub(crate) use gdriver_common::prelude::*;
|
||||
mod drive;
|
||||
mod sample;
|
||||
mod service;
|
||||
|
||||
pub(crate) async fn spawn(fut: impl Future<Output = ()> + Send + 'static) {
|
||||
tokio::spawn(fut);
|
||||
}
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
// sample::main().await?;
|
||||
service::start().await?;
|
||||
Ok(())
|
||||
}
|
||||
Reference in New Issue
Block a user