# 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.85.0"
name = "oxc-miette"
version = "2.7.1"
authors = [
    "Boshen",
    "Kat Marchán <kzm@zkat.tech>",
]
build = false
exclude = [
    "images/",
    "tests/",
    "miette-derive/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fancy diagnostic reporting library and protocol for us mere mortals who aren't compiler hackers."
documentation = "https://docs.rs/oxc-miette"
readme = "README.md"
categories = ["rust-patterns"]
license = "Apache-2.0"
repository = "https://github.com/oxc-project/oxc-miette"

[package.metadata.docs.rs]
all-features = true

[features]
default = ["derive"]
derive = ["oxc-miette-derive"]
fancy = [
    "fancy-no-backtrace",
    "backtrace",
    "backtrace-ext",
]
fancy-base = [
    "owo-colors",
    "textwrap",
]
fancy-no-backtrace = [
    "fancy-base",
    "terminal_size",
    "supports-hyperlinks",
    "supports-color",
    "supports-unicode",
]
fancy-no-syscall = ["fancy-base"]
no-format-args-capture = []

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

[dependencies.backtrace]
version = "0.3.74"
optional = true

[dependencies.backtrace-ext]
version = "0.2.1"
optional = true

[dependencies.cfg-if]
version = "1"

[dependencies.owo-colors]
version = "4"
optional = true

[dependencies.oxc-miette-derive]
version = "=2.7.1"
optional = true

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

[dependencies.supports-color]
version = "3.0.2"
optional = true

[dependencies.supports-hyperlinks]
version = "3.1.0"
optional = true

[dependencies.supports-unicode]
version = "3.0.0"
optional = true

[dependencies.terminal_size]
version = "0.4.2"
optional = true

[dependencies.textwrap]
version = "0.16.2"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.unicode-segmentation]
version = "1.12.0"

[dependencies.unicode-width]
version = "0.2.0"

[dev-dependencies.futures]
version = "0.3"
default-features = false

[dev-dependencies.indenter]
version = "0.3.3"

[dev-dependencies.insta]
version = "1.46.1"

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

[dev-dependencies.regex]
version = "1.11"

[dev-dependencies.rustversion]
version = "1.0"

[dev-dependencies.semver]
version = "1.0.26"

[dev-dependencies.serde_json]
version = "1.0.140"

[dev-dependencies.trybuild]
version = "1.0.104"
features = ["diff"]

[lints.rust]
absolute_paths_not_starting_with_crate = "warn"
non_ascii_idents = "warn"
unit-bindings = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(coverage)",
    "cfg(coverage_nightly)",
]

[profile.dev.package.insta]
opt-level = 3

[profile.dev.package.similar]
opt-level = 3
