# 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 = "ext-php-rs"
version = "0.15.12"
authors = [
    "Pierre Tondereau <pierre.tondereau@protonmail.com>",
    "Xenira <xenira@php.rs>",
    "David Cole <david.cole1340@gmail.com>",
]
build = "build.rs"
exclude = [
    "/.github",
    "/.crates",
    "/benches",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bindings for the Zend API to build PHP extensions natively in Rust."
homepage = "https://ext-php.rs"
readme = "README.md"
keywords = [
    "php",
    "ffi",
    "zend",
]
categories = ["api-bindings"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/extphprs/ext-php-rs"

[package.metadata.docs.rs]
rustdoc-args = [
    "--cfg",
    "docs",
]

[features]
anyhow = ["dep:anyhow"]
closure = []
default = [
    "enum",
    "runtime",
]
embed = []
enum = []
indexmap = ["dep:indexmap"]
observer = []
runtime = ["ext-php-rs-bindgen/runtime"]
smartstring = ["dep:smartstring"]
static = ["ext-php-rs-bindgen/static"]

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

[[example]]
name = "hello_world"
crate-type = ["cdylib"]
path = "examples/hello_world.rs"

[[example]]
name = "observer"
crate-type = ["cdylib"]
path = "examples/observer.rs"
required-features = ["observer"]

[[example]]
name = "zend_extension"
crate-type = ["cdylib"]
path = "examples/zend_extension.rs"
required-features = ["observer"]

[dependencies.anyhow]
version = "1"
optional = true

[dependencies.bitflags]
version = "2"

[dependencies.cfg-if]
version = "1.0"

[dependencies.ext-php-rs-derive]
version = "=0.11.12"

[dependencies.indexmap]
version = "2"
optional = true

[dependencies.inventory]
version = "0.3"

[dependencies.once_cell]
version = "1.21"

[dependencies.parking_lot]
version = "0.12.3"
features = ["arc_lock"]

[dependencies.smartstring]
version = "1"
optional = true

[dev-dependencies.skeptic]
version = "0.13"

[build-dependencies.anyhow]
version = "1"

[build-dependencies.cc]
version = "1.2"

[build-dependencies.ext-php-rs-bindgen]
version = "0.72.1-extphprs.1"
features = [
    "logging",
    "prettyplease",
]
default-features = false

[build-dependencies.ext-php-rs-build]
version = "0.1.1"

[build-dependencies.skeptic]
version = "0.13"

[target."cfg(windows)".build-dependencies.native-tls]
version = "0.2"

[target."cfg(windows)".build-dependencies.ureq]
version = "3.0"
features = [
    "native-tls",
    "gzip",
]
default-features = false

[target."cfg(windows)".build-dependencies.zip]
version = "8.0"

[lints.rust]
missing_docs = "warn"
