captrack 0.1.0

Capacity telemetry for Rust collections — call-site macros that record peak capacity, with zero overhead when disabled.
# 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"
rust-version = "1.74"
name = "captrack"
version = "0.1.0"
authors = ["Marat K <phpcraftdream@gmail.com>"]
build = false
include = [
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "Cargo.toml",
    "README.md",
    "CHANGELOG.md",
    "CONTRIBUTING.md",
    "LICENSE-APACHE",
    "LICENSE-MIT",
    "clippy.toml.example",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Capacity telemetry for Rust collections — call-site macros that record peak capacity, with zero overhead when disabled."
homepage = "https://github.com/PHPCraftdream/captrack"
documentation = "https://docs.rs/captrack"
readme = "README.md"
keywords = [
    "telemetry",
    "capacity",
    "profiling",
    "collections",
    "performance",
]
categories = ["development-tools::profiling"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/PHPCraftdream/captrack"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
ahash = ["dep:ahash"]
bytes = ["dep:bytes"]
dashmap = ["dep:dashmap"]
default = []
foldhash = ["dep:foldhash"]
fxhash = ["dep:fxhash"]
hashbrown = ["dep:hashbrown"]
indexmap = ["dep:indexmap"]
rustc-hash = ["dep:rustc-hash"]
scc = ["dep:scc"]
smallvec = ["dep:smallvec"]
telemetry = [
    "dep:scc",
    "dep:serde",
    "dep:serde_json",
    "dep:bytes",
    "dep:indexmap",
    "dep:dashmap",
    "dep:ctor",
    "dep:smallvec",
    "dep:fastrand",
    "dep:hashbrown",
]

[lib]
name = "captrack"
path = "src/lib.rs"
doctest = false

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

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

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

[dependencies.ahash]
version = "0.8"
optional = true

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

[dependencies.captrack-macros]
version = "0.1.0"

[dependencies.ctor]
version = "0.2"
optional = true

[dependencies.dashmap]
version = "6"
optional = true

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

[dependencies.foldhash]
version = "0.1"
optional = true

[dependencies.fxhash]
version = "0.2"
optional = true

[dependencies.hashbrown]
version = "0.15"
optional = true

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

[dependencies.rustc-hash]
version = "2"
optional = true

[dependencies.scc]
version = "2.2"
optional = true

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

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

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

[dev-dependencies.ahash]
version = "0.8"

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

[dev-dependencies.dashmap]
version = "6"

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

[dev-dependencies.hashbrown]
version = "0.15"

[dev-dependencies.indexmap]
version = "2"

[dev-dependencies.scc]
version = "2.2"

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

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

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