mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
xso: add more doc_cfg
labels
This commit is contained in:
parent
e439e9991e
commit
2fb9fc6959
1 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ use of this library in parsing XML streams like specified in RFC 6120.
|
|||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
pub mod error;
|
||||
#[cfg(feature = "minidom")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "minidom")))]
|
||||
pub mod minidom_compat;
|
||||
mod text;
|
||||
|
||||
|
@ -289,6 +290,7 @@ pub fn transform<T: FromXml, F: IntoXml>(from: F) -> Result<T, self::error::Erro
|
|||
/// function will return the element unharmed if its element header does not
|
||||
/// match the expectations of `T`.
|
||||
#[cfg(feature = "minidom")]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = "minidom")))]
|
||||
pub fn try_from_element<T: FromXml>(
|
||||
from: minidom::Element,
|
||||
) -> Result<T, self::error::FromElementError> {
|
||||
|
|
Loading…
Reference in a new issue