xmpp: Replace std stuff with alloc/core stuff

xmppftw created

Change summary

xmpp/src/agent.rs   | 2 +-
xmpp/src/builder.rs | 4 ++--
xmpp/src/lib.rs     | 2 ++
3 files changed, 5 insertions(+), 3 deletions(-)

Detailed changes

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::{

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::{

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;