[[bench]]
harness = false
name = "zero_cost"
path = "benches/zero_cost.rs"
[dependencies.derive_more]
features = ["as_ref", "deref", "deref_mut"]
version = "2.1.0"
[dependencies.sealed]
version = "0.6.0"
[dependencies.thiserror]
version = "2.0.17"
[dev-dependencies.criterion]
version = "0.8.1"
[lib]
name = "no_drop"
path = "src/lib.rs"
[package]
authors = ["Austin Stanley <MaxTMahem@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["rust-patterns", "memory-management"]
description = "A simple wrapper type that guards against a value being automatically dropped."
documentation = "https://MaxMahem.github.io/no_drop/index.html"
edition = "2024"
homepage = "https://github.com/MaxMahem/no_drop"
keywords = ["drop", "guard", "memory", "safety", "wrapper"]
license = "MIT OR Apache-2.0"
name = "no_drop"
readme = "README.md"
repository = "https://github.com/MaxMahem/no_drop"
rust-version = "1.85.1"
version = "0.3.0"
[[test]]
name = "guard"
path = "tests/guard.rs"
[[test]]
name = "wrap"
path = "tests/wrap.rs"