Add tests for crate exports ; add structure to imports/exports

This commit is contained in:
xmppftw xmppftw 2024-12-18 17:59:06 +01:00 committed by Link Mauve
commit 7991cef904
7 changed files with 77 additions and 32 deletions

View file

@ -1,8 +1,11 @@
use futures::{SinkExt, StreamExt};
use tokio::{self, io, net::TcpSocket};
use tokio_xmpp::parsers::stream_features::StreamFeatures;
use tokio_xmpp::xmlstream::{accept_stream, StreamHeader, Timeouts};
use tokio_xmpp::{
minidom::Element,
parsers::stream_features::StreamFeatures,
xmlstream::{accept_stream, StreamHeader, Timeouts},
};
#[tokio::main]
async fn main() -> Result<(), io::Error> {
@ -24,7 +27,7 @@ async fn main() -> Result<(), io::Error> {
.await?;
let stream = stream.send_header(StreamHeader::default()).await?;
let mut stream = stream
.send_features::<minidom::Element>(&StreamFeatures::default())
.send_features::<Element>(&StreamFeatures::default())
.await?;
tokio::spawn(async move {