# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.90"
name = "capsula-notify-slack"
version = "0.9.5"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Capsula hook that sends notifications to Slack."
readme = "README.md"
keywords = [
    "capsula",
    "capsula-hook",
    "slack",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/shunichironomura/capsula"

[lib]
name = "capsula_notify_slack"
path = "src/lib.rs"

[[test]]
name = "resolve_attachment_globs"
path = "tests/resolve_attachment_globs.rs"

[[test]]
name = "slack_hook"
path = "tests/slack_hook.rs"

[dependencies.capsula-core]
version = "0.9.5"

[dependencies.glob]
version = "0.3"

[dependencies.reqwest]
version = "0.13"
features = [
    "blocking",
    "json",
    "multipart",
]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.shlex]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
all = "warn"

[lints.clippy.allow_attributes]
level = "warn"
priority = 1

[lints.clippy.allow_attributes_without_reason]
level = "warn"
priority = 1

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.cognitive_complexity]
level = "allow"
priority = 1

[lints.clippy.dbg_macro]
level = "warn"
priority = 1

[lints.clippy.derive_partial_eq_without_eq]
level = "allow"
priority = 1

[lints.clippy.else_if_without_else]
level = "warn"
priority = 1

[lints.clippy.expect_used]
level = "allow"
priority = 1

[lints.clippy.indexing_slicing]
level = "allow"
priority = 1

[lints.clippy.missing_errors_doc]
level = "allow"
priority = 1

[lints.clippy.missing_panics_doc]
level = "allow"
priority = 1

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.panic]
level = "allow"
priority = 1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.print_stderr]
level = "warn"
priority = 1

[lints.clippy.print_stdout]
level = "warn"
priority = 1

[lints.clippy.todo]
level = "warn"
priority = 1

[lints.clippy.undocumented_unsafe_blocks]
level = "warn"
priority = 1

[lints.clippy.unimplemented]
level = "warn"
priority = 1

[lints.clippy.unwrap_used]
level = "warn"
priority = 1

[lints.rust]
unsafe-code = "warn"
