# 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 = "2021"
name = "revolt-result"
version = "0.13.7"
authors = ["Paul Makles <me@insrt.uk>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Revolt Backend: Result and Error types"
readme = false
license = "MIT"
repository = "https://github.com/stoatchat/stoatchat"
resolver = "3"

[features]
axum = [
    "dep:axum",
    "dep:serde_json",
]
default = [
    "serde",
    "sentry",
]
okapi = [
    "dep:revolt_rocket_okapi",
    "dep:revolt_okapi",
    "schemas",
]
rocket = [
    "dep:rocket",
    "dep:serde_json",
]
schemas = ["dep:schemars"]
sentry = ["dep:sentry"]
serde = ["dep:serde"]
utoipa = ["dep:utoipa"]

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

[dependencies.axum]
version = "0.7.5"
optional = true

[dependencies.log]
version = "0.4.29"

[dependencies.revolt_okapi]
version = "0.9.1"
optional = true

[dependencies.revolt_rocket_okapi]
version = "0.10.0"
optional = true

[dependencies.rocket]
version = "0.5.1"
optional = true

[dependencies.schemars]
version = "0.8.8"
optional = true

[dependencies.sentry]
version = "0.31.5"
optional = true

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

[dependencies.serde_json]
version = "1.0.79"
optional = true

[dependencies.utoipa]
version = "4.2.3"
optional = true
