Remove dep on xmpp-parsers, add jid and minidom

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-01-09 14:17:46 +01:00
parent 28580640b3
commit 0ed53d0775
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2
2 changed files with 6 additions and 3 deletions

View file

@ -8,7 +8,8 @@ description = "Parser for the Scansion DSL"
[dependencies]
nom = "7.1"
xmpp-parsers = { version = "^0.19" }
jid = "0.9"
minidom = "0.15"
[dev-dependencies]
pretty_assertions = "1.3"

View file

@ -10,13 +10,15 @@ use std::str::FromStr;
use nom::{
self,
branch::alt,
bytes::complete::{tag, take_until, take_while1},
bytes::complete::{tag, take_until, take_until1, take_while1},
character::complete::{multispace0, space0, space1},
combinator::recognize,
multi::{many0, many1},
sequence::{delimited, tuple},
IResult,
};
use xmpp_parsers::{BareJid, Element};
use jid::BareJid;
use minidom::Element;
pub type AccountName = String;