# 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"
name = "micromegas-tracing"
version = "0.24.0"
authors = ["Marc-Antoine Desroches <madesroches@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "instrumentation module, part of micromegas"
homepage = "https://micromegas.info/"
readme = "README.md"
keywords = [
    "observability",
    "telemetry",
    "analytics",
]
license = "Apache-2.0"
repository = "https://github.com/madesroches/micromegas/"
resolver = "2"

[features]
default = ["tokio"]
tokio = ["dep:tokio"]

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

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

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

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

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

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

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

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

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

[[bench]]
name = "with_dispatch"
path = "benches/with_dispatch.rs"
harness = false

[[bench]]
name = "with_no_dispatch"
path = "benches/with_no_dispatch.rs"
harness = false

[dependencies.anyhow]
version = "1.0"

[dependencies.chrono]
version = "0.4"
features = [
    "serde",
    "wasmbind",
]

[dependencies.lazy_static]
version = "1.4"

[dependencies.micromegas-tracing-proc-macros]
version = "^0.24"

[dependencies.pin-project]
version = "1.1"

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

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.47"
features = [
    "macros",
    "rt-multi-thread",
    "tracing",
    "io-util",
]
optional = true

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

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.log]
version = "0.4"
features = ["std"]

[dev-dependencies.serde_json]
version = "1.0"

[dev-dependencies.serial_test]
version = "3.2"

[dev-dependencies.tokio]
version = "1.47"
features = [
    "macros",
    "rt-multi-thread",
    "tracing",
    "io-util",
    "time",
]

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.internment]
version = "0.8"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.memoffset]
version = "0.9"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.micromegas-transit]
version = "0.24.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.raw-cpuid]
version = "11.3.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.thread-id]
version = "4.0"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.whoami]
version = "1.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target."cfg(windows)".dependencies.winapi]
version = "0.3"
features = ["profileapi"]
