# 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"
rust-version = "1.85"
name = "phper"
version = "0.17.5"
authors = [
    "PHPER Framework Team",
    "jmjoy <jmjoy@apache.org>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The framework that allows us to write PHP extensions using pure and safe Rust whenever possible."
documentation = "https://docs.rs/phper"
readme = "README.md"
keywords = [
    "php",
    "binding",
    "extension",
    "module",
]
license = "MulanPSL-2.0"
repository = "https://github.com/phper-framework/phper"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

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

[dependencies.derive_more]
version = "2.0.1"
features = [
    "from",
    "constructor",
]

[dependencies.indexmap]
version = "2.7.1"

[dependencies.phper-alloc]
version = "0.16.3"

[dependencies.phper-macros]
version = "0.15.3"

[dependencies.phper-sys]
version = "0.15.6"

[dependencies.sealed]
version = "0.6.0"

[dependencies.thiserror]
version = "2.0.11"

[build-dependencies.phper-build]
version = "0.15.6"

[build-dependencies.phper-sys]
version = "0.15.6"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(phper_major_version, values(any()))",
    "cfg(phper_minor_version, values(any()))",
    "cfg(phper_release_version, values(any()))",
    "cfg(phper_zts)",
    "cfg(phper_debug)",
]
