# 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.96.0"
name = "sdjournal"
version = "0.1.16"
build = false
include = [
    "/src/**",
    "/examples/**",
    "/tests/**",
    "/CHANGELOG.md",
    "/README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust systemd journal reader and query engine"
homepage = "https://github.com/lvillis/sdjournal"
documentation = "https://docs.rs/sdjournal"
readme = "README.md"
keywords = [
    "systemd",
    "journal",
    "journald",
    "logging",
    "linux",
]
categories = [
    "os::unix-apis",
    "parsing",
    "filesystem",
]
license = "MIT"
repository = "https://github.com/lvillis/sdjournal"

[package.metadata.release]
allow-branch = ["main"]
consolidate-commits = true
enable-all-features = true
shared-version = true
tag-prefix = ""
tag-name = "{{version}}"
tag-message = "chore(release): {{version}}"
pre-release-commit-message = "chore(release): {{version}}"
pre-release-hook = [
    "git",
    "cliff",
    "--output",
    "CHANGELOG.md",
    "--tag",
    "{{version}}",
]

[features]
default = [
    "mmap",
    "lz4",
    "zstd",
]
lz4 = ["dep:lz4_flex"]
mmap = ["dep:memmap2"]
tokio = ["dep:tokio"]
tracing = ["dep:tracing"]
verify-seal = [
    "dep:hmac",
    "dep:sha2",
    "dep:num-bigint",
    "dep:num-traits",
]
xz = ["dep:xz2"]
zstd = ["dep:ruzstd"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.hmac]
version = "0.13.0"
optional = true
default-features = false

[dependencies.lz4_flex]
version = "0.13.0"
features = [
    "std",
    "safe-decode",
    "checked-decode",
]
optional = true
default-features = false

[dependencies.memmap2]
version = "0.9.10"
optional = true
default-features = false

[dependencies.num-bigint]
version = "0.4.6"
features = ["std"]
optional = true
default-features = false

[dependencies.num-traits]
version = "0.2.19"
features = ["std"]
optional = true
default-features = false

[dependencies.ruzstd]
version = "0.8.2"
features = ["std"]
optional = true
default-features = false

[dependencies.sha2]
version = "0.11.0"
optional = true
default-features = false

[dependencies.siphasher]
version = "1.0.2"
features = ["std"]
default-features = false

[dependencies.tokio]
version = "1.52.1"
features = ["sync"]
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.44"
features = ["std"]
optional = true
default-features = false

[dependencies.xz2]
version = "0.1.7"
features = ["static"]
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
features = [
    "cargo_bench_support",
    "plotters",
    "rayon",
]
default-features = false

[dev-dependencies.serde_json]
version = "1.0.149"
features = ["std"]
default-features = false

[dev-dependencies.tempfile]
version = "3.27.0"
default-features = false

[target.'cfg(target_os = "linux")'.dependencies.rustix]
version = "1.1.4"
features = [
    "event",
    "fs",
]
default-features = false
