fshc 1.4.0

A tiny file and socket handle counter, a modern open source alternative to handle.exe
# 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 = "fshc"
version = "1.4.0"
authors = [
    "Michael Klishin",
    "Michael Davis",
    "RabbitMQ Core Team",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A tiny file and socket handle counter, a modern open source alternative to handle.exe"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/rabbitmq/fshc"

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

[[bin]]
name = "fshc"
path = "src/main.rs"

[[bin]]
name = "target_process"
path = "tests/bin/target_process.rs"

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

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

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

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

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "help",
    "color",
    "cargo",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sysexits]
version = "0.11"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.assert_cmd]
version = "2.1"

[dev-dependencies.predicates]
version = "3.1"

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

[target.'cfg(any(target_os = "linux"))'.dependencies.procfs]
version = "0.18"

[target.'cfg(any(target_os = "macos"))'.dependencies.libproc]
version = "0.14"

[target.'cfg(target_env = "musl")'.dependencies.mimalloc]
version = "0.1"
optional = true

[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
version = "0.61"
features = [
    "Wdk_Foundation",
    "Wdk_System_SystemInformation",
    "Win32_System_Threading",
    "Win32_Foundation",
]

[profile.ci]
debug = 0
inherits = "dev"

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