mirror of
https://github.com/OMGeeky/gdriver2.git
synced 2026-02-15 07:34:51 +01:00
29 lines
602 B
Rust
29 lines
602 B
Rust
use futures::{future, prelude::*};
|
|
use tarpc::{
|
|
context,
|
|
server::{self, incoming::Incoming, Channel},
|
|
tokio_serde::formats::Json,
|
|
};
|
|
use tokio::net::unix::SocketAddr;
|
|
|
|
mod prelude;
|
|
use crate::prelude::*;
|
|
pub(crate) use gdriver_common::prelude::*;
|
|
use gdriver_common::tracing_subscriber::*;
|
|
|
|
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?;
|
|
init_tracing();
|
|
test_tracing();
|
|
service::start().await?;
|
|
Ok(())
|
|
}
|