8d8f3fea37
The previous code didn't build with 1.78: ``` error[E0716]: temporary value dropped while borrowed --> parsers/src/data_forms/validate.rs:394:46 | 380 | let value = match self { | ----- borrow later stored here ... 394 | Datatype::UserDefined(value) => &format!("x:{value}"), | ^^^^^^^^^^^^^^^^^^^- | | | | | temporary value is freed at the end of this statement | creates a temporary value which is freed while still in use | = note: consider using a `let` binding to create a longer lived value = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) error[E0716]: temporary value dropped while borrowed --> parsers/src/data_forms/validate.rs:395:51 | 380 | let value = match self { | ----- borrow later stored here ... 395 | Datatype::Other { prefix, value } => &format!("{prefix}:{value}"), | ^^^^^^^^^^^^^^^^^^^^^^^^^^- | | | | | temporary value is freed at the end of this statement | creates a temporary value which is freed while still in use | = note: consider using a `let` binding to create a longer lived value = note: this error originates in the macro `format` (in Nightly builds, run with -Z macro-backtrace for more info) For more information about this error, try `rustc --explain E0716`. ``` This seems like a silly reason to pull up the compiler version requirements, so I fixed it with a trivial modification. |
||
---|---|---|
.forgejo/workflows | ||
jid | ||
minidom | ||
parsers | ||
sasl | ||
tokio-xmpp | ||
xmpp | ||
xso | ||
xso-proc | ||
.gitea | ||
.github | ||
.gitignore | ||
.gitlab-ci.yml | ||
Cargo.toml | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
LICENSE | ||
README.md |
xmpp-rs
What's this?
A very much WIP set of rust XMPP library with the goals of being type-safe and well-tested.
xmpp-rs
provides a high-level API for the protocol. You shouldn't need to know about the protocol to use it.tokio-xmpp
is a lower-level library that handles the XMPP stream(s).xmpp-parsers
parses XML into Rust and back.minidom
is a DOM library quite specific for XMPPjid
is a Jid parsing library.
Contact
There is an XMPP MUC for the discussion of this library, feel free to join! :)
Community
A Code of Conduct is available as CODE_OF_CONDUCT.md in the repository for the well-being of the community. Please refer to it in case of a possible conflict in any of the xmpp-rs venues (channel, forge, etc.).
License
Mozilla Public License 2 (MPL2). See the LICENSE file.
Building
Dependencies should be provided by crates if you use the default features. If
you use tokio-xmpp's tls-native
feature you will need an ssl library
(openssl, libressl, etc.).
cargo build
The various features available should be explained in the crates themselves.
Contributing
Thank you for your interest in the project!
Contributing rules are available as CONTRIBUTING.md in the repository.