From 668cc05445bcaa3989bed2c88888a87a18356c51 Mon Sep 17 00:00:00 2001 From: xmppftw Date: Thu, 19 Dec 2024 19:32:49 +0100 Subject: [PATCH] xmpp: Replace std stuff with alloc/core stuff --- xmpp/src/agent.rs | 2 +- xmpp/src/builder.rs | 4 ++-- xmpp/src/lib.rs | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/xmpp/src/agent.rs b/xmpp/src/agent.rs index a15a9d333b27084fea94ed68ab0c04c15af7209c..5513c1bfb2bb768d0fc1ae7781f2a9b00e5f727b 100644 --- a/xmpp/src/agent.rs +++ b/xmpp/src/agent.rs @@ -4,9 +4,9 @@ // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. +use alloc::sync::Arc; use std::collections::HashMap; use std::path::{Path, PathBuf}; -use std::sync::Arc; use tokio::sync::RwLock; use crate::{ diff --git a/xmpp/src/builder.rs b/xmpp/src/builder.rs index f60304f0ef6728a53b5ecbd06a21fde8c4756974..5b78b85b4df28418b6a7d59e7e38befde9b88d99 100644 --- a/xmpp/src/builder.rs +++ b/xmpp/src/builder.rs @@ -6,9 +6,9 @@ #[cfg(any(feature = "starttls-rust", feature = "starttls-native"))] use crate::tokio_xmpp::connect::{DnsConfig, StartTlsServerConnector}; +use alloc::sync::Arc; +use core::str::FromStr; use std::collections::HashMap; -use std::str::FromStr; -use std::sync::Arc; use tokio::sync::RwLock; use crate::{ diff --git a/xmpp/src/lib.rs b/xmpp/src/lib.rs index cfee73365605170b2e396f3cb54c79541d7f78bf..d3d76f1c265765d805e7670132a79ebe1f892eb2 100644 --- a/xmpp/src/lib.rs +++ b/xmpp/src/lib.rs @@ -7,6 +7,8 @@ #![deny(bare_trait_objects)] #![cfg_attr(docsrs, feature(doc_auto_cfg))] +extern crate alloc; + pub use tokio_xmpp; pub use tokio_xmpp::jid; pub use tokio_xmpp::minidom;