[package]
name = "lemmy_api_utils"
publish = false
version.workspace = true
edition.workspace = true
description.workspace = true
license.workspace = true
homepage.workspace = true
documentation.workspace = true
repository.workspace = true

[lib]
name = "lemmy_api_utils"
path = "src/lib.rs"
doctest = false

[lints]
workspace = true

[features]
full = [
  "lemmy_db_schema/full",
  "lemmy_db_views_community/full",
  "lemmy_db_views_community_follower_approval/full",
  "lemmy_db_views_community_moderator/full",
  "lemmy_db_views_local_image/full",
  "lemmy_db_views_local_user/full",
  "lemmy_db_views_site/full",
  "lemmy_db_views_private_message/full",
  "lemmy_db_views_comment/full",
  "lemmy_db_views_post/full",
  "lemmy_db_views_notification/full",
  "lemmy_db_views_registration_applications/full",
]
plugins = [
  "extism",
  "extism-convert",
  "extism-manifest",
  "lemmy_db_views_site/plugins",
  "lemmy_db_views_registration_applications/plugins",
]

[dependencies]
lemmy_db_schema = { workspace = true }
lemmy_db_schema_file = { workspace = true }
lemmy_db_views_community = { workspace = true }
lemmy_db_views_community_follower_approval = { workspace = true }
lemmy_db_views_community_moderator = { workspace = true }
lemmy_db_views_local_image = { workspace = true }
lemmy_db_views_local_user = { workspace = true }
lemmy_db_views_site = { workspace = true }
lemmy_db_views_private_message = { workspace = true }
lemmy_db_views_comment = { workspace = true }
lemmy_db_views_post = { workspace = true }
lemmy_db_views_notification = { workspace = true }
lemmy_db_views_registration_applications = { workspace = true }
lemmy_email = { workspace = true }
anyhow = { workspace = true }
serde = { workspace = true }
tokio = { workspace = true }
tracing = { workspace = true }
lemmy_utils = { workspace = true }
extism = { workspace = true, optional = true }
extism-convert = { workspace = true, optional = true }
extism-manifest = { version = "1.20.0", optional = true }
reqwest-middleware = { workspace = true }
activitypub_federation = { workspace = true }
mime = { version = "0.3.17" }
mime_guess = "2.0.5"
infer = "0.19.0"
chrono = { workspace = true }
encoding_rs = "0.8.35"
futures = { workspace = true }
reqwest = { workspace = true }
actix-web = { workspace = true }
actix-web-httpauth = { version = "0.8.2" }
enum-map = { workspace = true }
url = { workspace = true }
moka = { workspace = true }
webmention = { version = "0.6.0" }
urlencoding = { workspace = true }
webpage = { version = "2.0", default-features = false, features = ["serde"] }
regex = { workspace = true }
jsonwebtoken = { version = "10.3.0", features = ["rust_crypto"] }
either.workspace = true
derive-new.workspace = true
lemmy_diesel_utils = { workspace = true }
rustls = { workspace = true }

[dev-dependencies]
serial_test = { workspace = true }
pretty_assertions = { workspace = true }
lemmy_db_views_notification = { workspace = true, features = ["full"] }
diesel_ltree = { workspace = true }
