[package]
name = "ctor"
version = "0.4.1"
authors = ["Matt Mastracci <matthew@mastracci.com>"]
edition = "2021"
description = "__attribute__((constructor)) for Rust"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/mmastrac/rust-ctor"
readme = "../README.md"
[features]
default = ["dtor", "proc_macro", "__no_warn_on_missing_unsafe"]
dtor = ["dep:dtor"]
proc_macro = ["dep:ctor-proc-macro", "dtor?/proc_macro"]
used_linker = ["dtor?/used_linker"]
__no_warn_on_missing_unsafe = ["dtor?/__no_warn_on_missing_unsafe"]
[dependencies]
ctor-proc-macro = { version = "0.0.5", optional = true }
dtor = { version = "0.0.5", default-features = false, optional = true }
[dev-dependencies]
libc-print = "0.1.20"
[[example]]
name = "example"
path = "src/example.rs"