# 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 = "gridlock"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Drop-in instrumented replacements for `tokio::sync` primitives that automatically detect potential deadlocks at runtime."
readme = "README.md"
license = "MIT"
repository = "https://github.com/gnosek/gridlock"

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

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

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

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

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

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

[dependencies.pin-project]
version = "1"

[dependencies.tokio]
version = "1.50.0"
features = [
    "rt",
    "sync",
    "time",
    "tracing",
]

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.tokio]
version = "1.50.0"
features = [
    "macros",
    "rt-multi-thread",
]

[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]
