clap-logflag 0.3.0

This library can be used to add a `--log` flag to clap based command line applications that allows users to configure logging from the command line. It can log to stderr, files and syslog, powered by the fern logging backend.
Documentation
# 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.88"
name = "clap-logflag"
version = "0.3.0"
authors = ["Sebastian Messmer <messmer@cryfs.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "This library can be used to add a `--log` flag to clap based command line applications that allows users to configure logging from the command line. It can log to stderr, files and syslog, powered by the fern logging backend."
documentation = "https://docs.rs/clap-logflag"
readme = "README.md"
keywords = [
    "cli",
    "clap",
    "logging",
    "log",
    "syslog",
]
categories = [
    "command-line-interface",
    "config",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/smessmer/clap-logflag"

[features]
serde = [
    "dep:serde",
    "log/serde",
]

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

[[example]]
name = "default_logging"
path = "examples/default_logging.rs"

[[example]]
name = "integration_test"
path = "examples/integration_test.rs"

[[example]]
name = "simple_cli"
path = "examples/simple_cli.rs"

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

[dependencies.anyhow]
version = "^1.0.46"

[dependencies.clap]
version = "^4"
features = ["derive"]

[dependencies.embed-doc-image]
version = "^0.1.4"

[dependencies.fern]
version = "^0.7.1"
features = [
    "syslog-7",
    "colored",
]

[dependencies.humantime]
version = "^2.1"

[dependencies.log]
version = "^0.4.17"

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

[dependencies.syslog]
version = "^7"

[dev-dependencies.assert_fs]
version = "^1.1"

[dev-dependencies.escargot]
version = "^0.5"

[dev-dependencies.postcard]
version = "^1"
features = ["use-std"]

[dev-dependencies.predicates]
version = "^3.1"

[dev-dependencies.rstest]
version = "^0.26"

[dev-dependencies.rstest_reuse]
version = "^0.7"