[dependencies.cfg-if]
version = "1.0"
[dependencies.libc]
version = "0.2"
[dependencies.thiserror]
version = "1.0"
[dev-dependencies]
[[example]]
name = "android_game_hook"
path = "examples/android_game_hook.rs"
[[example]]
name = "basic_hook"
path = "examples/basic_hook.rs"
[[example]]
name = "error_handling"
path = "examples/error_handling.rs"
[[example]]
name = "library_hook"
path = "examples/library_hook.rs"
[[example]]
name = "multi_arch"
path = "examples/multi_arch.rs"
[features]
debug = []
[lib]
crate-type = ["cdylib", "rlib"]
name = "substrate"
path = "src/lib.rs"
[package]
authors = ["Rodroid Mods"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "os", "development-tools"]
description = "Powerful function hooking library for Android and Linux - Rust rewrite of Cydia Substrate and And64InlineHook"
documentation = "https://docs.rs/substrate-rs"
edition = "2024"
homepage = "https://github.com/rodroidmods/cydia-substrate"
keywords = ["hook", "inject", "android", "il2cpp", "substrate"]
license = "LGPL-3.0"
name = "substrate-rs"
readme = "README.md"
repository = "https://github.com/rodroidmods/cydia-substrate"
version = "0.1.6"
[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
rustdoc-args = ["--cfg", "docsrs"]
targets = ["x86_64-unknown-linux-gnu", "armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu"]
[profile.release]
codegen-units = 1
debug = 0
lto = "fat"
opt-level = 3
overflow-checks = false
panic = "abort"
strip = true
[profile.release.package."*"]
codegen-units = 1
debug = 0
opt-level = 3
overflow-checks = false
strip = true