ext-php-rs 0.15.4

Bindings for the Zend API to build PHP extensions natively in Rust.
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 = "ext-php-rs"
version = "0.15.4"
authors = [
    "Pierre Tondereau <pierre.tondereau@protonmail.com>",
    "Xenira <xenira@php.rs>",
    "David Cole <david.cole1340@gmail.com>",
]
build = "build.rs"
exclude = [
    "/.github",
    "/.crates",
]
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 = []
observer = []
runtime = ["bindgen/runtime"]
smartstring = ["dep:smartstring"]
static = ["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"]

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

[dependencies.bitflags]
version = "2"

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

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

[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.bindgen]
version = "0.72"
features = [
    "logging",
    "prettyplease",
]
default-features = false

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

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

[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 = "7.0"

[lints.rust]
missing_docs = "warn"