# 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.60"
name = "dtor"
version = "0.12.0"
authors = ["Matt Mastracci <matthew@mastracci.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "__attribute__((destructor)) for Rust"
readme = "README.md"
categories = ["no-std"]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/mmastrac/rust-ctor"

[features]
default = [
    "std",
    "proc_macro",
]
no_warn_on_missing_unsafe = []
proc_macro = ["dep:linktime-proc-macro"]
std = []
used_linker = []

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

[[example]]
name = "dtor-example"
path = "src/example.rs"

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

[dependencies.linktime-proc-macro]
version = "0.1.0"
features = ["dtor"]
optional = true

[dev-dependencies.libc-print]
version = "0.1"

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

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

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

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