thag_profiler 1.0.1

A lightweight, cross-platform Rust code profiling toolkit with zero overhead when disabled
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 = "thag_profiler"
version = "1.0.1"
authors = ["thag_rs developer"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A lightweight, cross-platform Rust code profiling toolkit with zero overhead when disabled"
documentation = "https://github.com/durbanlegend/thag_rs/blob/develop/thag_profiler/README.md"
readme = "README.md"
keywords = [
    "profiling",
    "performance",
    "flamegraph",
    "instrumentation",
    "tracing",
]
categories = [
    "development-tools::profiling",
    "development-tools",
    "command-line-utilities",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/durbanlegend/thag_rs"

[package.metadata.wix]
upgrade-guid = "0C80A2EF-343B-4EA3-BCE0-2985B10A2893"
path-guid = "DB87B3CE-6DCB-436A-85FA-C90A0061C9B3"
license = false
eula = false

[package.metadata.dist]
features = ["tools"]

[package.metadata.docs.rs]
all-features = true
default-features = false
features = [
    "document-features",
    "full_profiling",
    "debug_logging",
    "internal_docs",
]

[features]
analyze_tool = [
    "dirs",
    "inferno",
    "inquire_theming",
    "ra_ap_syntax",
    "serde_json",
]
debug_logging = ["thag_proc_macros/debug_logging"]
default = []
demo = [
    "inferno",
    "smol",
]
document-features = ["dep:document-features"]
full_profiling = [
    "time_profiling",
    "thag_proc_macros/full_profiling",
]
inquire_theming = [
    "inquire",
    "thag_styling/inquire_theming",
]
instrument_tool = ["ra_ap_syntax"]
internal_docs = ["thag_proc_macros/internal_docs"]
time_profiling = ["thag_proc_macros/time_profiling"]
tools = [
    "analyze_tool",
    "instrument_tool",
]

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

[[bin]]
name = "thag_instrument"
path = "src/bin/thag_instrument.rs"
required-features = ["instrument_tool"]

[[bin]]
name = "thag_profile"
path = "src/bin/thag_profile.rs"
required-features = ["analyze_tool"]

[[bin]]
name = "thag_uninstrument"
path = "src/bin/thag_uninstrument.rs"
required-features = ["instrument_tool"]

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.backtrace]
version = "0.3"

[dependencies.chrono]
version = "0.4"

[dependencies.dashmap]
version = "6.1"

[dependencies.dirs]
version = "6.0"
optional = true

[dependencies.document-features]
version = "0.2"
optional = true

[dependencies.inferno]
version = "0.12"
optional = true

[dependencies.inline_colorization]
version = "0.1"

[dependencies.inquire]
version = "0.9"
optional = true

[dependencies.once_cell]
version = "1.20"

[dependencies.parking_lot]
version = "0.12"
default-features = false

[dependencies.ra_ap_syntax]
version = "0.0.309"
optional = true

[dependencies.regex]
version = "1.11"
features = ["unicode"]
default-features = false

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

[dependencies.serde_json]
version = "1.0"
optional = true

[dependencies.smol]
version = "2"
optional = true

[dependencies.strum]
version = "0.28"
features = [
    "derive",
    "phf",
]

[dependencies.thag_common]
version = "1"

[dependencies.thag_proc_macros]
version = "1"
default-features = false

[dependencies.thag_styling]
version = "1"
optional = true

[dev-dependencies.async-std]
version = "1.12"
features = ["attributes"]

[dev-dependencies.regex]
version = "1.11"

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

[dev-dependencies.smol]
version = "2.0"

[dev-dependencies.tokio]
version = "1.36"
features = [
    "rt",
    "macros",
    "time",
]

[lints.clippy]
uninlined_format_args = "allow"