xmpp: Replace std stuff with alloc/core stuff
This commit is contained in:
parent
1c1b960265
commit
668cc05445
3 changed files with 5 additions and 3 deletions
|
|
@ -4,9 +4,9 @@
|
||||||
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
// 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/.
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
|
use alloc::sync::Arc;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::sync::Arc;
|
|
||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
||||||
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
#[cfg(any(feature = "starttls-rust", feature = "starttls-native"))]
|
#[cfg(any(feature = "starttls-rust", feature = "starttls-native"))]
|
||||||
use crate::tokio_xmpp::connect::{DnsConfig, StartTlsServerConnector};
|
use crate::tokio_xmpp::connect::{DnsConfig, StartTlsServerConnector};
|
||||||
|
use alloc::sync::Arc;
|
||||||
|
use core::str::FromStr;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::str::FromStr;
|
|
||||||
use std::sync::Arc;
|
|
||||||
use tokio::sync::RwLock;
|
use tokio::sync::RwLock;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,8 @@
|
||||||
#![deny(bare_trait_objects)]
|
#![deny(bare_trait_objects)]
|
||||||
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
|
||||||
|
|
||||||
|
extern crate alloc;
|
||||||
|
|
||||||
pub use tokio_xmpp;
|
pub use tokio_xmpp;
|
||||||
pub use tokio_xmpp::jid;
|
pub use tokio_xmpp::jid;
|
||||||
pub use tokio_xmpp::minidom;
|
pub use tokio_xmpp::minidom;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue