b643665354
Apparently I had an empty /etc/resolv.conf on one host due to systemd growing pains, which I only discovered by adding the logger and seeing > [2021-12-31T20:22:01Z WARN trust_dns_resolver::system_conf::unix] no nameservers found in config Without env_logger, the only output I had was an unhelpful > could not connect to xmpp server and changing die() to unwrap() only narrowed it down slightly to > Connection(Resolve(ResolveError { kind: Message("No connections available") })) One can set the environment variable RUST_LOG=debug for more verbosity. Under the default setting it seems to be silent if nothing goes wrong.
36 lines
824 B
TOML
36 lines
824 B
TOML
[package]
|
|
name = "sendxmpp"
|
|
version = "2.0.0"
|
|
authors = ["moparisthebest <admin@moparisthebest.com>"]
|
|
|
|
description = "Send XMPP messages from the command line."
|
|
repository = "https://code.moparisthebest.com/moparisthebest/sendxmpp-rs"
|
|
keywords = ["xmpp"]
|
|
|
|
license = "AGPL-3.0-or-later"
|
|
readme = "README.md"
|
|
|
|
edition = "2018"
|
|
|
|
include = [
|
|
"**/*.rs",
|
|
"Cargo.toml",
|
|
"*.md",
|
|
"sendxmpp.toml",
|
|
]
|
|
|
|
[dependencies]
|
|
toml = "0.5"
|
|
serde_derive = "1.0"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
gumdrop = "0.8.0"
|
|
gumdrop_derive = "0.8.0"
|
|
dirs = "3.0.1"
|
|
tokio-xmpp = "3.0.0"
|
|
tokio = { version = "1", features = ["net", "rt", "rt-multi-thread", "macros", "io-util", "io-std"] }
|
|
tokio-tls = { package = "tokio-native-tls", version = "0.3" }
|
|
xmpp-parsers = "0.18"
|
|
die = "0.2.0"
|
|
anyhow = "1.0"
|
|
env_logger = "0.9"
|