# 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 = "dnd-character"
version = "0.14.0"
authors = ["DreamingCodes"]
build = "build.rs"
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Dungeons and Dragons character generator"
homepage = "https://dreaming.codes"
readme = false
license = "MIT"
repository = "https://github.com/Dreaming-Codes/dnd-character"

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

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

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

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

[dependencies.anyhow]
version = "1.0.82"

[dependencies.cynic]
version = "3.5.1"
features = [
    "http-reqwest",
    "serde_json",
]
optional = true

[dependencies.futures]
version = "0.3.30"

[dependencies.lazy_static]
version = "1.4.0"

[dependencies.regex]
version = "1.10.4"

[dependencies.reqwest]
version = "0.12.3"
optional = true

[dependencies.serde]
version = "1.0.197"
optional = true

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

[dependencies.serde_variant]
version = "0.1.3"
optional = true

[dependencies.thiserror]
version = "1.0.58"

[dependencies.utoipa]
version = "5.0.0-beta.0"
optional = true

[dev-dependencies.futures]
version = "0.3.30"

[dev-dependencies.tokio]
version = "1.37.0"
features = ["macros"]

[build-dependencies.cynic-codegen]
version = "3.5.1"
optional = true

[features]
api = [
    "dep:cynic-codegen",
    "dep:cynic",
    "dep:reqwest",
]
api-rustls = [
    "api",
    "reqwest/rustls-tls",
]
default = [
    "api-rustls",
    "serde",
]
serde = [
    "dep:serde",
    "dep:serde_json",
    "dep:serde_variant",
]
utoipa = ["dep:utoipa"]
