[package]
edition = "2024"
name = "wide-log"
version = "0.5.2"
authors = ["David Grantham <dwg@linuxprogrammer.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast wide event logging crate a la loggingsucks.com"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/dhuseby/wide-log"
[features]
default = []
tokio = [
"dep:tokio",
"dep:tower",
"wide-log-macros/tokio",
]
uuid = [
"dep:uuid",
"wide-log-macros/uuid",
]
[lib]
name = "wide_log"
path = "src/lib.rs"
[[example]]
name = "async_multi_thread"
path = "examples/async_multi_thread.rs"
required-features = ["tokio"]
[[example]]
name = "async_single_thread"
path = "examples/async_single_thread.rs"
required-features = [
"tokio",
"uuid",
]
[[example]]
name = "axum_ok"
path = "examples/axum_ok.rs"
required-features = ["tokio"]
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "custom_emit"
path = "examples/custom_emit.rs"
[[example]]
name = "custom_keys"
path = "examples/custom_keys.rs"
[[example]]
name = "explicit_duration"
path = "examples/explicit_duration.rs"
[[example]]
name = "tracing_emit"
path = "examples/tracing_emit.rs"
[[test]]
name = "async"
path = "tests/async.rs"
required-features = ["tokio"]
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "macros"
path = "tests/macros.rs"
[[test]]
name = "stdout_emit"
path = "tests/stdout_emit.rs"
[[bench]]
name = "core"
path = "benches/core.rs"
harness = false
[dependencies.chrono]
version = "0.4"
[dependencies.chrono-tz]
version = "0.10"
[dependencies.faststr]
version = "0"
[dependencies.itoa]
version = "1"
[dependencies.ryu]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.smallvec]
version = "1"
features = [
"union",
"write",
"serde",
]
[dependencies.sonic-rs]
version = "0"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = ["rt"]
optional = true
[dependencies.tower]
version = "0"
optional = true
[dependencies.ulid]
version = "3"
[dependencies.uuid]
version = "1"
features = ["v4"]
optional = true
[dependencies.wide-log-macros]
version = "0.4.1"
[dev-dependencies.axum]
version = "0"
features = [
"http1",
"tokio",
]
default-features = false
[dev-dependencies.criterion]
version = "0"
features = [
"cargo_bench_support",
"plotters",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"sync",
"net",
"io-util",
]
[dev-dependencies.tracing]
version = "0"
[dev-dependencies.tracing-subscriber]
version = "0"
features = ["env-filter"]