[package]
edition = "2024"
rust-version = "1.88"
name = "wide-log"
version = "0.6.3"
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"
resolver = "2"
[features]
default = []
tokio = [
"dep:tokio",
"dep:tower",
"wide-log-macros/tokio",
]
tracing = ["wide-log-macros/tracing"]
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 = "no_flush"
path = "examples/no_flush.rs"
[[example]]
name = "tracing_emit"
path = "examples/tracing_emit.rs"
[[test]]
name = "async"
path = "tests/async.rs"
required-features = ["tokio"]
[[test]]
name = "cross_module"
path = "tests/cross_module.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "macros"
path = "tests/macros.rs"
[[test]]
name = "stdout_emit"
path = "tests/stdout_emit.rs"
[[test]]
name = "tracing_feature"
path = "tests/tracing_feature.rs"
[[bench]]
name = "core"
path = "benches/core.rs"
harness = false
[[bench]]
name = "hot_path"
path = "benches/hot_path.rs"
harness = false
[[bench]]
name = "writer"
path = "benches/writer.rs"
harness = false
[dependencies.chrono]
version = "0.4"
[dependencies.chrono-tz]
version = "0.10"
[dependencies.faststr]
version = "=0.2.34"
[dependencies.itoa]
version = "1"
[dependencies.rustc-hash]
version = "2"
[dependencies.ryu]
version = "1"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.smallvec]
version = "1"
features = [
"union",
"serde",
]
[dependencies.sonic-rs]
version = "=0.5.8"
[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.6.3"
[dev-dependencies.criterion]
version = "0"
features = [
"cargo_bench_support",
"plotters",
]
default-features = false
[dev-dependencies.tracing]
version = "0"
[dev-dependencies.tracing-subscriber]
version = "0"
features = ["env-filter"]
[target."cfg(loom)".dev-dependencies.loom]
version = "0.7.2"
[target."cfg(not(loom))".dev-dependencies.axum]
version = "0"
features = [
"http1",
"tokio",
]
default-features = false
[target."cfg(not(loom))".dev-dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
"sync",
"net",
"io-util",
]
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = ["cfg(loom)"]