# 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.89.0"
name = "logforth"
version = "0.30.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A versatile and extensible logging implementation."
homepage = "https://github.com/fast/logforth"
readme = "README.md"
keywords = [
    "logging",
    "log",
    "opentelemetry",
    "fastrace",
]
categories = ["development-tools::debugging"]
license = "Apache-2.0"
repository = "https://github.com/fast/logforth"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
append-async = ["dep:logforth-append-async"]
append-fastrace = ["dep:logforth-append-fastrace"]
append-file = ["dep:logforth-append-file"]
append-journald = ["dep:logforth-append-journald"]
append-opentelemetry = ["dep:logforth-append-opentelemetry"]
append-syslog = ["dep:logforth-append-syslog"]
bridge-log = ["dep:logforth-bridge-log"]
bridge-log-serde = [
    "bridge-log",
    "logforth-bridge-log/serde",
]
default = []
diagnostic-fastrace = ["dep:logforth-diagnostic-fastrace"]
diagnostic-task-local = ["dep:logforth-diagnostic-task-local"]
filter-rustlog = ["dep:logforth-filter-rustlog"]
layout-google-cloud-logging = ["dep:logforth-layout-google-cloud-logging"]
layout-json = ["dep:logforth-layout-json"]
layout-logfmt = ["dep:logforth-layout-logfmt"]
layout-text = ["dep:logforth-layout-text"]
native-tls = ["logforth-append-syslog?/native-tls"]
rustls = ["logforth-append-syslog?/rustls"]
starter-log = [
    "dep:log",
    "bridge-log",
    "append-file",
    "layout-text",
    "layout-json",
    "filter-rustlog",
]

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

[[test]]
name = "recursive_logging"
path = "tests/recursive_logging.rs"
required-features = ["starter-log"]

[dependencies.log]
version = "0.4.27"
optional = true
default-features = false

[dependencies.logforth-append-async]
version = "0.4.0"
optional = true

[dependencies.logforth-append-fastrace]
version = "0.4.0"
optional = true

[dependencies.logforth-append-file]
version = "0.4.0"
optional = true

[dependencies.logforth-append-journald]
version = "0.4.0"
optional = true

[dependencies.logforth-append-opentelemetry]
version = "0.4.0"
optional = true

[dependencies.logforth-append-syslog]
version = "0.4.0"
optional = true

[dependencies.logforth-bridge-log]
version = "0.4.0"
optional = true

[dependencies.logforth-core]
version = "0.4.0"

[dependencies.logforth-diagnostic-fastrace]
version = "0.4.0"
optional = true

[dependencies.logforth-diagnostic-task-local]
version = "0.4.0"
optional = true

[dependencies.logforth-filter-rustlog]
version = "0.4.0"
optional = true

[dependencies.logforth-layout-google-cloud-logging]
version = "0.4.0"
optional = true

[dependencies.logforth-layout-json]
version = "0.4.0"
optional = true

[dependencies.logforth-layout-logfmt]
version = "0.4.0"
optional = true

[dependencies.logforth-layout-text]
version = "0.4.0"
optional = true

[dev-dependencies.log]
version = "0.4.27"
default-features = false

[dev-dependencies.logforth-append-file]
version = "0.4.0"

[lints.clippy]
dbg_macro = "deny"

[lints.rust]
unknown_lints = "deny"
unused_must_use = "deny"
