[package]
edition = "2024"
name = "discord_hook"
version = "0.1.5"
build = false
exclude = ["target/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust crate for sending messages to Discord via webhooks"
homepage = "https://github.com/RayburnCode/hooksmith"
documentation = "https://docs.rs/discord_hook"
readme = "README.md"
keywords = [
"discord",
"webhook",
"notification",
"bot",
"async",
]
categories = [
"web-programming",
"web-programming::http-client",
"network-programming",
]
license = "MIT"
repository = "https://github.com/RayburnCode/hooksmith"
resolver = "2"
[features]
default = ["rustls"]
native-tls = ["reqwest/native-tls"]
rustls = ["reqwest/rustls"]
[lib]
name = "discord_hook"
path = "src/lib.rs"
[[example]]
name = "basic_message"
path = "examples/basic_message.rs"
[[example]]
name = "rich_embed"
path = "examples/rich_embed.rs"
[[example]]
name = "send_with_retry"
path = "examples/send_with_retry.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies.hooksmith-core]
version = "0.1"
[dependencies.reqwest]
version = "0.13.2"
features = ["json"]
default-features = false
[dependencies.secrecy]
version = "0.10"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2.0.18"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
]