xmpp-rs/parsers/Cargo.toml
Jonas Schäfer e2dcd8ac66 Stop being pedantic by default
Up to now, the xmpp-rs projects have been very strict about incoming
data. This has served us, as developers of the libraries, well,
uncovering bugs in our and remote implementations which we could then
get fixed.

However, this behaviour is unexpected to users of the library. In the
XMPP world, unexpected child elements and attributes are generally
expected to be ignored. While this could be opted-into previously, the
feature flag for that sounded more dangerous than it was
("disable-validation"). In addition, the tribal knowledge needed to know
about that feature flag may not have reached some people who tried the
library and gave up because of that.

With this change, we make the non-pedantic behaviour the default. For
development and debugging purposes, users can always opt into the
pedantic behaviour as needed, using the newly-introduced `pedantic`
feature flags on all affected crates.
2026-03-27 12:51:51 +01:00

43 lines
1.5 KiB
TOML

[package]
name = "xmpp-parsers"
version = "0.22.0"
authors = [
"Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>",
"Maxime “pep” Buquet <pep@bouah.net>",
]
description = "Collection of parsers and serialisers for XMPP extensions"
homepage = "https://gitlab.com/xmpp-rs/xmpp-rs"
repository = "https://gitlab.com/xmpp-rs/xmpp-rs"
keywords = ["xmpp", "jabber", "xml"]
categories = ["parsing", "network-programming"]
license = "MPL-2.0"
edition = "2021"
[dependencies]
base64 = "0.22"
digest = "0.10"
sha1 = "0.10"
sha2 = "0.10"
sha3 = "0.10"
blake2 = "0.10.4"
chrono = { version = "0.4.5", default-features = false, features = ["std"] }
log = { version = "0.4", optional = true }
# same repository dependencies
jid = { version = "0.12", path = "../jid", features = ["minidom"] }
minidom = { version = "0.18", path = "../minidom" }
xso = { version = "0.3", path = "../xso", features = ["macros", "minidom", "panicking-into-impl", "jid", "uuid", "base64", "serde_json"] }
uuid = { version = "1.9.1", features = ["v4"] }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
[features]
# Build xmpp-parsers to make components instead of clients.
component = []
# Raise errors on unexpected children and attributes.
pedantic = [ "xso/pedantic" ]
# Enable serde support in jid crate
serde = [ "jid/serde" ]
# Enable some additional logging in helpers
log = [ "dep:log" ]
[package.metadata.docs.rs]
rustdoc-args = [ "--sort-modules-by-appearance", "-Zunstable-options" ]