17 lines
432 B
Rust
Raw Normal View History

2020-02-14 12:20:17 +01:00
// module needs to be top level for generated functions to be in scope:
// https://github.com/capnproto/capnproto-rust/issues/16
2020-04-28 18:40:50 +02:00
pub mod gen {
2020-02-14 12:20:17 +01:00
include!(concat!(env!("OUT_DIR"), "/schema/api_capnp.rs"));
}
use async_std::net::TcpStream;
2020-05-11 18:21:45 +02:00
use futures::io::{AsyncRead, AsyncWrite};
2020-02-14 12:20:17 +01:00
2020-02-18 16:55:19 +01:00
use slog::Logger;
2020-05-04 13:22:14 +02:00
use crate::error::Result;
2020-02-18 16:55:19 +01:00
2020-05-04 13:22:14 +02:00
pub async fn handle_connection(log: Logger, socket: TcpStream) -> Result<()> {
2020-04-28 16:51:08 +02:00
unimplemented!()
2020-02-14 12:20:17 +01:00
}