xmpp-parsers: Stop reexporting extra symbols

Let’s continue reexporting jid and minidom, but not their inner pub
items, users of this crate can go one level deeper if they need that.

Only xso::error::Error is still useful to reexport, as this is part of
the public API of all of our parsers.
This commit is contained in:
Emmanuel Gil Peyrot 2024-07-24 20:28:22 +02:00 • committed by Jonas Schäfer
commit 7b66de1166
79 changed files with 123 additions and 118 deletions

View file

@ -23,16 +23,18 @@
#![warn(missing_docs)]
pub use xso::error::{Error, FromElementError};
// TODO: only export top-level module on the next major release
pub use jid::{self, BareJid, Error as JidParseError, FullJid, Jid};
pub use minidom::Element;
pub use blake2;
pub use jid;
pub use minidom;
pub use sha1;
pub use sha2;
pub use sha3;
// We normally only reexport entire crates, but xso is a special case since it uses proc macros
// which require it to be directly imported as a crate. The only useful symbol we have to reexport
// is its error type, which we expose in all of our return types.
pub use xso::error::Error;
/// XML namespace definitions used through XMPP.
pub mod ns;