hprof-analyzer 0.2.0

Fast, low-memory Java HPROF heap-dump analyzer with Eclipse MAT-parity reports (System Overview, Leak Suspects, Top Consumers).
# 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"
rust-version = "1.85"
name = "hprof-analyzer"
version = "0.2.0"
authors = ["Johannes Bechberger"]
build = "build.rs"
exclude = [
    "tests/fixtures/*.hprof",
    "tests/fixtures/*.hprof.gz",
    "tests/fixtures/*.hprof.zip",
    "tests/fixtures/*.json",
    "tests/fixtures/*.md",
    "tests/fixtures/*.index",
    "tests/fixtures/*.threads",
    "web/dist/*",
    "web/node_modules/*",
    "dist/*",
    ".git-worktrees/*",
    "docs/*",
    "*.png",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast, low-memory Java HPROF heap-dump analyzer with Eclipse MAT-parity reports (System Overview, Leak Suspects, Top Consumers)."
readme = "README.md"
keywords = [
    "hprof",
    "heap-dump",
    "java",
    "memory",
    "oom",
]
categories = [
    "command-line-utilities",
    "development-tools::profiling",
]
license = "MIT"
repository = "https://github.com/parttimenerd/hprof-analyzer"
resolver = "2"

[features]
default = ["native"]
mat-oracle = []
native = [
    "dep:reedline",
    "dep:crossterm",
    "dep:tiny_http",
    "dep:clap",
    "dep:clap_complete",
    "dep:scraper",
    "dep:zstd",
    "dep:zip",
    "dep:tar",
    "dep:ureq",
    "dep:self-replace",
]

[lib]
name = "hprof_analyzer"
crate-type = ["rlib"]
path = "src/lib.rs"

[[bin]]
name = "hprof-analyzer"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.ariadne]
version = "0.6.0"

[dependencies.base64]
version = "0.22"

[dependencies.chumsky]
version = "0.13.0"

[dependencies.clap]
version = "4"
features = ["derive"]
optional = true

[dependencies.clap_complete]
version = "4"
optional = true

[dependencies.crossterm]
version = "0.28"
optional = true

[dependencies.flate2]
version = "1"

[dependencies.logos]
version = "0.16.1"

[dependencies.reedline]
version = "0.43"
optional = true

[dependencies.regex]
version = "1"

[dependencies.schemars]
version = "=1.2.1"

[dependencies.scraper]
version = "0.27"
optional = true

[dependencies.self-replace]
version = "1"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.tar]
version = "0.4"
optional = true

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

[dependencies.toml]
version = "0.8"
features = ["parse"]
default-features = false

[dependencies.ureq]
version = "3"
features = ["rustls"]
optional = true
default-features = false

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

[dependencies.zstd]
version = "0.13"
optional = true
default-features = false

[dev-dependencies.cargo-husky]
version = "1.5.0"
features = [
    "precommit-hook",
    "run-cargo-fmt",
    "user-hooks",
]

[dev-dependencies.jsonschema]
version = "0.47.0"

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

[dev-dependencies.tar]
version = "0.4"

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

[build-dependencies.flate2]
version = "1"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.clippy]
collapsible_if = "allow"
needless_range_loop = "allow"
ptr_arg = "allow"
redundant_closure_call = "allow"
too_many_arguments = "allow"

[profile.fast]
lto = false
codegen-units = 256
panic = "abort"
inherits = "release"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"