[package] name = "oxc-miette" version = "1.0.2" authors = ["Boshen", "Kat Marchán "] description = "Fancy diagnostic reporting library and protocol for us mere mortals who aren't compiler hackers." categories = ["rust-patterns"] repository = "https://github.com/zkat/miette" documentation = "https://docs.rs/miette" license = "Apache-2.0" readme = "README.md" edition = "2018" rust-version = "1.70.0" exclude = ["images/", "tests/", "miette-derive/"] [lib] name = "miette" [lints.rust] absolute_paths_not_starting_with_crate = "warn" non_ascii_idents = "warn" unit-bindings = "warn" unexpected_cfgs = { level = "warn", check-cfg = ['cfg(coverage)', 'cfg(coverage_nightly)'] } [dependencies] oxc-miette-derive = { path = "miette-derive", version = "=1.0.2", optional = true } # Relaxed version so the user can decide which version to use. thiserror = "1" serde = { version = "1", features = ["derive"], optional = true } unicode-width = "0.2.0" cfg-if = "1.0.0" owo-colors = { version = "4.1.0", optional = true } textwrap = { version = "0.16.1", optional = true } supports-hyperlinks = { version = "3.0.0", optional = true } supports-color = { version = "3.0.1", optional = true } supports-unicode = { version = "3.0.0", optional = true } backtrace = { version = "0.3.74", optional = true } terminal_size = { version = "0.4.0", optional = true } backtrace-ext = { version = "0.2.1", optional = true } syntect = { version = "5.2.0", optional = true } [dev-dependencies] semver = "1.0.23" # Eyre devdeps futures = { version = "0.3", default-features = false } indenter = "0.3.3" rustversion = "1.0" trybuild = { version = "1.0.101", features = ["diff"] } regex = "1.11" lazy_static = "1.5" serde_json = "1.0.132" # strip-ansi-escapes = "0.2.0" [features] default = ["derive"] derive = ["oxc-miette-derive"] no-format-args-capture = [] fancy-base = [ "owo-colors", "textwrap", ] fancy-no-syscall = [ "fancy-base", ] fancy-no-backtrace = [ "fancy-base", "terminal_size", "supports-hyperlinks", "supports-color", "supports-unicode", ] fancy = ["fancy-no-backtrace", "backtrace", "backtrace-ext"] syntect-highlighter = ["fancy-no-backtrace", "syntect"] [workspace] members = ["miette-derive"] [package.metadata.docs.rs] all-features = true [package.metadata.cargo-shear] ignored = ["futures", "indenter", "semver"]