[package]
edition = "2024"
rust-version = "1.86"
name = "chat-system"
version = "0.1.2"
build = false
include = [
"/Cargo.toml",
"/README.md",
"/LICENSE",
"/src/**",
"/examples/**",
"/tests/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A multi-protocol async chat crate — single interface for IRC, Matrix, Discord, Telegram, Slack, Signal, WhatsApp, and more"
homepage = "https://github.com/rexlunae/chat-system"
documentation = "https://docs.rs/chat-system"
readme = "README.md"
keywords = [
"chat",
"messaging",
"irc",
"matrix",
"discord",
]
categories = [
"network-programming",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/rexlunae/chat-system"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
full = [
"matrix",
"whatsapp",
"signal-cli",
"tls",
]
matrix = []
signal-cli = []
tls = [
"dep:tokio-rustls",
"dep:rustls",
"dep:rustls-pemfile",
]
whatsapp = [
"dep:wa-rs",
"dep:wa-rs-core",
"dep:wa-rs-sqlite-storage",
"dep:wa-rs-tokio-transport",
"dep:wa-rs-ureq-http",
]
[lib]
name = "chat_system"
path = "src/lib.rs"
[[example]]
name = "discord_bot"
path = "examples/discord_bot.rs"
[[example]]
name = "generic_config_client"
path = "examples/generic_config_client.rs"
[[example]]
name = "generic_config_server"
path = "examples/generic_config_server.rs"
[[example]]
name = "generic_multi_platform"
path = "examples/generic_multi_platform.rs"
[[example]]
name = "irc_client"
path = "examples/irc_client.rs"
[[example]]
name = "irc_echo_server"
path = "examples/irc_echo_server.rs"
[[example]]
name = "irc_encrypted_client"
path = "examples/irc_encrypted_client.rs"
[[example]]
name = "irc_encrypted_echo_server"
path = "examples/irc_encrypted_echo_server.rs"
required-features = ["tls"]
[[example]]
name = "matrix_client"
path = "examples/matrix_client.rs"
required-features = ["matrix"]
[[test]]
name = "channel_type"
path = "tests/channel_type.rs"
[[test]]
name = "console"
path = "tests/console.rs"
[[test]]
name = "http_messengers"
path = "tests/http_messengers.rs"
[[test]]
name = "irc"
path = "tests/irc.rs"
[[test]]
name = "irc_server"
path = "tests/irc_server.rs"
[[test]]
name = "manager"
path = "tests/manager.rs"
[[test]]
name = "matrix"
path = "tests/matrix.rs"
[[test]]
name = "message"
path = "tests/message.rs"
[[test]]
name = "rich_text"
path = "tests/rich_text.rs"
[[test]]
name = "server"
path = "tests/server.rs"
[[test]]
name = "signal_cli"
path = "tests/signal_cli.rs"
[[test]]
name = "whatsapp"
path = "tests/whatsapp.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.async-trait]
version = "0.1"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.futures]
version = "0.3"
[dependencies.pulldown-cmark]
version = "0.13"
default-features = false
[dependencies.reqwest]
version = "0.13"
features = [
"json",
"rustls",
"form",
]
default-features = false
[dependencies.rusqlite]
version = "0.37"
features = ["bundled"]
[dependencies.rustls]
version = "0.23"
optional = true
[dependencies.rustls-pemfile]
version = "2.2"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-rustls]
version = "0.26"
optional = true
[dependencies.tokio-tungstenite]
version = "0.28"
features = ["rustls-tls-webpki-roots"]
[dependencies.tracing]
version = "0.1"
[dependencies.typetag]
version = "0.2.21"
[dependencies.wa-rs]
version = "0.2"
optional = true
[dependencies.wa-rs-core]
version = "0.2"
optional = true
[dependencies.wa-rs-sqlite-storage]
version = "0.2"
optional = true
[dependencies.wa-rs-tokio-transport]
version = "0.2"
optional = true
[dependencies.wa-rs-ureq-http]
version = "0.2"
optional = true
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]