diversion 0.2.0

Ergonomic function hooks for Windows and Linux
Documentation
# 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 = "diversion"
version = "0.2.0"
authors = ["Dasaav"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Ergonomic function hooks for Windows and Linux"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Dasaav-dsv/diversion"

[package.metadata.docs.rs]
features = ["custom"]
targets = [
    "x86_64-pc-windows-msvc",
    "x86_64-unknown-linux-gnu",
]

[features]
bare_hrtb = ["closure-ffi/proc_macros"]
custom = ["installer"]
default = ["installer"]
installer = [
    "diversion-abi/process_ctx",
    "dep:bump-into",
    "dep:libc",
]
parking_lot = ["diversion-abi/parking_lot"]

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

[[bench]]
name = "overhead"
path = "benches/overhead.rs"
harness = false
required-features = ["custom"]

[dependencies.bump-into]
version = "=0.8.3"
optional = true

[dependencies.closure-ffi]
version = "5.1.2"

[dependencies.closure-ffi-iced-x86]
version = "1.21.0-commit50066fb"
features = [
    "decoder",
    "block_encoder",
    "exhaustive_enums",
]
default-features = false

[dependencies.diversion-abi]
version = "0.1.0"
features = ["__private_abi"]

[dependencies.thiserror]
version = "2.0.18"

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.rayon]
version = "1.12.0"

[target."cfg(unix)".dependencies.libc]
version = "0.2.189"
optional = true