# 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"
name = "syslog_fmt"
version = "0.4.0"
authors = ["opensource@tandemdrive.com"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A formatter for the 5425 syslog protocol"
readme = "README.md"
keywords = [
    "syslog",
    "rfc-5424",
    "logging",
    "logs",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/tandemdrive/syslog-fmt"

[features]
chrono = ["dep:chrono"]
default = ["chrono"]

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

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

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

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

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

[[test]]
name = "assert_no_heap_allocations_with_structured_data"
path = "tests/assert_no_heap_allocations_with_structured_data.rs"
harness = false

[[test]]
name = "assert_no_heap_allocations_without_structured_data"
path = "tests/assert_no_heap_allocations_without_structured_data.rs"
harness = false

[dependencies.chrono]
version = "0.4.31"
features = ["clock"]
optional = true
default-features = false

[dev-dependencies.arrayvec]
version = "0.7.4"

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.dhat]
version = "0.3.2"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.log]
version = "0.4.20"

[dev-dependencies.parking_lot]
version = "0.12.1"
