# 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"
name = "indieweb"
version = "0.10.0"
authors = ["Jacky Alciné <yo@jacky.wtf>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A collection of utilities for working with the IndieWeb."
homepage = "https://indieweb.org/Rust#Library"
readme = "README.md"
keywords = [
    "indieweb",
    "webmention",
    "indieauth",
    "micropub",
    "microsub",
]
categories = [
    "web-programming::http-client",
    "api-bindings",
    "web-programming",
]
license = "AGPL-3.0"
repository = "https://git.sr.ht/~jacky/indieweb-rust"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[package.metadata.playground]
all-features = true

[badges.maintenance]
status = "actively-developed"

[features]
blocking = [
    "dep:reqwest",
    "reqwest/blocking",
    "reqwest/rustls-tls",
]
default = [
    "reqwest",
    "reaction",
    "experimental",
    "reqwest_middleware",
]
experimental = [
    "experimental_channels",
    "experimental_syndication",
    "experimental_relation",
    "experimental_websub",
    "experimental_microsub",
    "experimental_vouch",
    "experimental_salmention",
    "experimental_authorship",
]
experimental_authorship = []
experimental_batch = []
experimental_channels = []
experimental_media_query = ["dep:mime"]
experimental_microsub = []
experimental_publish_delay = ["dep:iso8601-duration"]
experimental_relation = []
experimental_salmention = []
experimental_syndication = []
experimental_vouch = []
experimental_websub = []
fake = ["dep:fake"]
reaction = ["regex"]
reqwest = [
    "dep:reqwest",
    "reqwest/rustls-tls",
]
reqwest_middleware = [
    "dep:reqwest-middleware",
    "reqwest",
]

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

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

[[bench]]
name = "micropub_properties"
path = "benches/micropub_properties.rs"
harness = false

[dependencies.async-trait]
version = "0.1.82"

[dependencies.base64]
version = "0.22"

[dependencies.fake]
version = "4"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.http]
version = "1"

[dependencies.iso8601-duration]
version = "0.2"
optional = true

[dependencies.microformats]
version = "0.19.0"

[dependencies.miette]
version = "7.2"
features = ["derive"]
default-features = false

[dependencies.mime]
version = "0.3"
optional = true

[dependencies.rand]
version = "0.9"
features = ["os_rng"]
default-features = false

[dependencies.regex]
version = "1.10.6"
features = [
    "perf",
    "unicode-bool",
]
optional = true
default-features = false

[dependencies.reqwest]
version = "0.12"
optional = true
default-features = false

[dependencies.reqwest-middleware]
version = "0.4"
optional = true

[dependencies.secrecy]
version = "0.10"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_qs]
version = "0"

[dependencies.serde_with]
version = "3.12.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.time]
version = "0.3"
features = [
    "serde",
    "serde-well-known",
]

[dependencies.tracing]
version = "0.1"
features = ["attributes"]

[dependencies.url]
version = "2.5"
features = ["serde"]

[dependencies.uuid]
version = "1.0"
features = ["v4"]

[dev-dependencies.assert-json-diff]
version = "2.0"

[dev-dependencies.criterion]
version = "0.5"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.fake]
version = "4"

[dev-dependencies.hex]
version = "0.4"

[dev-dependencies.hmac]
version = "0.12"

[dev-dependencies.miette]
version = "7.2"
features = ["fancy"]
default-features = true

[dev-dependencies.mockito]
version = "1.5"

[dev-dependencies.reqwest]
version = "0.12"

[dev-dependencies.reqwest-middleware]
version = "0.4"

[dev-dependencies.sha2]
version = "0.10"

[dev-dependencies.tokio]
version = "1.40"
features = [
    "test-util",
    "full",
]

[dev-dependencies.tracing-test]
version = "0.2"
