# 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 = "systemd-journal-sdk-common"
version = "0.6.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared types and utilities for the pure Rust systemd journal SDK"
homepage = "https://github.com/netdata/systemd-journal-sdk"
documentation = "https://docs.rs/systemd-journal-sdk-common"
readme = "README.md"
keywords = [
    "systemd",
    "journal",
    "logging",
    "sdk",
]
categories = [
    "filesystem",
    "parser-implementations",
]
license = "GPL-3.0-or-later"
repository = "https://github.com/netdata/systemd-journal-sdk"
resolver = "2"

[features]
allocative = ["dep:allocative"]

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

[dependencies.allocative]
version = "0.3.4"
optional = true

[dependencies.rustc-hash]
version = "2.1"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]

[dependencies.uuid]
version = "1.0"
features = [
    "v4",
    "rng",
    "serde",
]

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = ["Win32_System_WindowsProgramming"]
default-features = false

[lints.clippy]
collapsible_if = "allow"
