# 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"
name = "ltrace"
version = "0.1.3"
authors = ["James Ren <jamesvren@163.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A rolling file writer for tracing and log crates with rotation, compression, and dynamic log level support"
readme = "README.md"
keywords = [
    "log",
    "logger",
    "logging",
    "tracing",
    "trace",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jamesvren/ltrace"

[features]
compression = ["flate2"]
console = [
    "log",
    "dep:colored",
]
default = [
    "log",
    "compression",
]
log = ["dep:log"]

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

[dependencies.chrono]
version = "0.4"

[dependencies.colored]
version = "3"
optional = true

[dependencies.flate2]
version = "1.0"
optional = true

[dependencies.log]
version = "0.4"
features = ["std"]
optional = true

[dev-dependencies.tempfile]
version = "3"
