xmpp-rs/jid/Cargo.toml
Emmanuel Gil Peyrot 2a2f532c80 jid: Validate domains against idna
The idna crate validates against UTS 46, which supports domains using
either IDNA2003 or IDNA2008.  This allows us to support both old and
new internationalized domain names.

This dependency isn’t a new one in the tree, as hickory-proto, url and
tokio-xmpp all were already depending on it.

There are a bunch of other checks that have to be performed, this is
inspired by slixmpp’s JID implementation.
2025-02-12 18:21:20 +01:00

37 lines
993 B
TOML

[package]
name = "jid"
version = "0.11.1"
authors = [
"lumi <lumi@pew.im>",
"Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>",
"Maxime “pep” Buquet <pep@bouah.net>",
]
description = "A crate which provides a Jid struct for Jabber IDs."
homepage = "https://gitlab.com/xmpp-rs/xmpp-rs"
repository = "https://gitlab.com/xmpp-rs/xmpp-rs"
documentation = "https://docs.rs/jid"
readme = "README.md"
keywords = ["xmpp", "jid"]
license = "MPL-2.0"
edition = "2021"
[badges]
gitlab = { repository = "xmpp-rs/xmpp-rs" }
[dependencies]
memchr = "2.5"
serde = { version = "1.0", features = ["derive"], optional = true }
stringprep = "0.1.3"
quote = { version = "1.0", optional = true }
proc-macro2 = { version = "1.0", optional = true }
idna = "1"
# same repository dependencies
minidom = { version = "0.16", path = "../minidom", optional = true }
[dev-dependencies]
serde_test = "1"
jid = { path = ".", features = [ "serde" ] }
[features]
default = []
quote = ["dep:quote", "dep:proc-macro2"]