memscope-rs 0.2.0

A memory tracking library for Rust applications.
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 = "memscope-rs"
version = "0.2.0"
authors = ["TimWood"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A memory tracking library for Rust applications."
homepage = "https://github.com/TimWood0x10/memscope-rs"
documentation = "https://docs.rs/memscope-rs"
readme = "README.md"
keywords = [
    "memory",
    "tracking",
    "profiling",
    "debugging",
]
categories = [
    "development-tools::profiling",
    "memory-management",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/TimWood0x10/memscope-rs"

[features]
backtrace = ["dep:backtrace"]
default = ["derive"]
derive = ["dep:memscope-derive"]
tracking-allocator = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.backtrace]
version = "0.3"
features = ["serde"]
optional = true

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

[dependencies.crossbeam]
version = "0.8"

[dependencies.dashmap]
version = "6.0"

[dependencies.handlebars]
version = "6.4.0"

[dependencies.libc]
version = "0.2"

[dependencies.memscope-derive]
version = "0.1.0"
optional = true

[dependencies.num_cpus]
version = "1.16"

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.rand]
version = "0.10.0"
features = ["std"]

[dependencies.rayon]
version = "1.8"

[dependencies.regex]
version = "1.12.3"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.svg]
version = "0.18.0"

[dependencies.sysinfo]
version = "0.32.0"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tracing]
version = "0.1.44"

[dependencies.tracing-subscriber]
version = "0.3.20"
features = [
    "env-filter",
    "tracing-log",
]

[dev-dependencies.criterion]
version = "0.5.1"
features = ["html_reports"]

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

[dev-dependencies.tempfile]
version = "3.27.0"

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

[target.'cfg(target_os = "macos")'.dependencies.mach2]
version = "0.6"

[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
    "Win32_Foundation",
    "Win32_System_Memory",
    "Win32_System_SystemInformation",
    "Win32_System_Diagnostics_Debug",
    "Win32_System_ProcessStatus",
]

[profile.dev]
opt-level = 0
debug = 2
strip = false

[profile.dev.package."*"]
opt-level = 2
debug = 0

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
debug = 0
panic = "abort"
strip = true

[profile.release-small]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
overflow-checks = false
inherits = "release"
strip = "symbols"