# 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 = "emit"
version = "1.19.0"
authors = ["emit contributors"]
build = false
exclude = [
    "asset",
    "book",
    ".github",
    ".cargo",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Developer-first diagnostics for Rust applications."
readme = "README.md"
keywords = [
    "logging",
    "tracing",
    "metrics",
    "observability",
]
categories = ["development-tools::debugging"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/emit-rs/emit"

[package.metadata.docs.rs]
features = [
    "std",
    "rand",
    "sval",
    "serde",
    "implicit_rt",
    "implicit_internal_rt",
]

[features]
alloc = ["emit_core/alloc"]
default = [
    "std",
    "rand",
    "web",
    "implicit_rt",
    "implicit_internal_rt",
]
implicit_internal_rt = ["emit_core/implicit_internal_rt"]
implicit_rt = [
    "emit_core/implicit_rt",
    "emit_macros/implicit_rt",
]
serde = [
    "emit_macros/serde",
    "emit_core/serde",
    "dep:serde",
]
std = [
    "alloc",
    "emit_macros/std",
    "emit_core/std",
]
sval = [
    "emit_macros/sval",
    "emit_core/sval",
    "dep:sval",
]
web = [
    "wasm-bindgen",
    "js-sys",
]

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

[dependencies.emit_core]
version = "1.19.0"
default-features = false

[dependencies.emit_macros]
version = "1.19.0"

[dependencies.serde]
version = "1"
optional = true
default-features = false

[dependencies.sval]
version = "2"
optional = true
default-features = false

[dev-dependencies.serde]
version = "1"
features = ["derive"]

[dev-dependencies.serde_test]
version = "1"

[dev-dependencies.sval_test]
version = "2"

[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))'.dependencies.js-sys]
version = "0.3"
optional = true

[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))'.dependencies.wasm-bindgen]
version = "0.2"
optional = true

[target.'cfg(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown"))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(any(target_os = "linux", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "android", target_os = "wasi"))'.dependencies.rand]
version = "0.10"
optional = true

[target.'cfg(not(all(target_arch = "wasm32", target_vendor = "unknown", target_os = "unknown")))'.dev-dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
    "io-util",
    "rt",
    "time",
]

[profile.release]
debug = 2
