[package]
edition = "2024"
rust-version = "1.85"
name = "forkguard"
version = "0.1.0"
authors = ["LiosK <contact@mail.liosk.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "if guard.detected_fork() { ... }"
documentation = "https://docs.rs/forkguard"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/LiosK/forkguard-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
atfork = ["dep:libc"]
[lib]
name = "forkguard"
path = "src/lib.rs"
[[test]]
name = "basic"
path = "tests/basic.rs"
[[test]]
name = "multiple_forks"
path = "tests/multiple_forks.rs"
[[test]]
name = "multiple_guards"
path = "tests/multiple_guards.rs"
[[test]]
name = "noop_guard"
path = "tests/noop_guard.rs"
[dependencies.libc]
version = "0.2"
optional = true
[dev-dependencies.libc]
version = "0.2"