holochain_trace 0.8.0-dev.0

tracing helpers
Documentation
# 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 = "2021"
name = "holochain_trace"
version = "0.8.0-dev.0"
authors = [
    "freesig <tom.gowan@holo.host>",
    "Holochain Core Dev Team <devcore@holochain.org>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "tracing helpers"
documentation = "https://docs.rs/holochain_trace"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/holochain/holochain"

[features]
channels = [
    "dep:tokio",
    "dep:shrinkwraprs",
]
default = []

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

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

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

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

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

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

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

[dependencies.chrono]
version = "0.4.24"

[dependencies.derive_more]
version = "2.0"
features = [
    "from",
    "into",
    "display",
]

[dependencies.inferno]
version = "0.12"

[dependencies.serde_json]
version = "1.0.94"
features = ["preserve_order"]

[dependencies.shrinkwraprs]
version = "0.3.0"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.27"
features = ["sync"]
optional = true

[dependencies.tracing]
version = "0.1.37"

[dependencies.tracing-core]
version = "0.1.30"

[dependencies.tracing-serde]
version = "0.2"

[dependencies.tracing-subscriber]
version = "0.3.16"
features = [
    "env-filter",
    "time",
    "json",
]

[dev-dependencies.tokio]
version = "1.27"
features = ["full"]

[lints.clippy]
complexity = "deny"
correctness = "deny"
dbg_macro = "deny"
perf = "deny"
style = "deny"

[lints.clippy.cargo]
level = "allow"
priority = -1

[lints.clippy.nursery]
level = "allow"
priority = -1

[lints.clippy.pedantic]
level = "allow"
priority = -1

[lints.clippy.restriction]
level = "allow"
priority = -1

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(build_wasm)",
    "cfg(loom)",
]