]> git.lizzy.rs Git - connect-rs.git/blobdiff - src/lib.rs
remove dependency on protobuf and introduce basic custom wire format
[connect-rs.git] / src / lib.rs
index 4f1fe18ac1a8b8506465600a1c1c77b65065aa95..45f76da53ee4caff795accb05202e55d90c82df5 100644 (file)
 //! Until the Rust ecosystem around reflection improves, the crate will use Protobuf to fill the
 //! void.
 
+pub mod protocol;
 mod reader;
-pub(crate) mod schema;
 pub mod tcp;
 pub mod tls;
 mod writer;
 
+pub use crate::protocol::{ConnectDatagram, DatagramEmptyError};
 pub use crate::reader::ConnectionReader;
 pub use crate::writer::ConnectionWriter;
 use async_std::{net::SocketAddr, pin::Pin};