# 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 = "rcp-tools-common"
version = "0.32.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Internal library for RCP file operation tools - shared utilities and core operations (not intended for direct use)"
documentation = "https://docs.rs/rcp-tools-common"
readme = "README.md"
keywords = [
    "internal",
    "library",
    "file-operations",
]
categories = ["development-tools"]
license = "MIT"
repository = "https://github.com/wykurz/rcp"
resolver = "2"

[package.metadata.docs.rs]
cargo-args = [
    "--config",
    'build.rustflags=["--cfg", "tokio_unstable"]',
]
rustdoc-args = [
    "--cfg",
    "tokio_unstable",
]

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.async-recursion]
version = "1.1"

[dependencies.bytes]
version = "1.11"

[dependencies.bytesize]
version = "2.3"

[dependencies.chrono]
version = "0.4"

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

[dependencies.congestion]
version = "0.32.0"
package = "rcp-tools-congestion"

[dependencies.console-subscriber]
version = "0.5"

[dependencies.enum-map]
version = "2.7"

[dependencies.futures]
version = "0.3"

[dependencies.globset]
version = "0.4"

[dependencies.hdrhistogram]
version = "7.5"
features = ["serialization"]
default-features = false

[dependencies.humantime]
version = "2.3"

[dependencies.indicatif]
version = "0.18"

[dependencies.libc]
version = "0.2"

[dependencies.nix]
version = "0.31"
features = [
    "fs",
    "hostname",
    "user",
]

[dependencies.procfs]
version = "0.18"

[dependencies.rand]
version = "0.10"

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

[dependencies.serde_json]
version = "1"

[dependencies.sysinfo]
version = "0.39"

[dependencies.thiserror]
version = "2.0"

[dependencies.throttle]
version = "0.32.0"
package = "rcp-tools-throttle"

[dependencies.tokio]
version = "1.52"
features = [
    "full",
    "parking_lot",
    "tracing",
]

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-chrome]
version = "0.7"

[dependencies.tracing-flame]
version = "0.2"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "parking_lot",
]

[dependencies.tracing-test]
version = "0.2"

[dev-dependencies.filetime]
version = "0.2"

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

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

[lints.clippy.all]
level = "deny"
priority = -1

[lints.rustdoc]
missing_crate_level_docs = "allow"

[lints.rustdoc.all]
level = "deny"
priority = -1
