# 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 = "folk-runtime-embed"
version = "0.1.16"
authors = ["Folk Contributors"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embedded PHP runtime for Folk — PHP interpreter runs in-process via FFI"
homepage = "https://github.com/Folk-Project"
readme = false
keywords = [
    "folk",
    "php",
    "server",
    "async",
]
categories = [
    "asynchronous",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/Folk-Project/folk-core"
resolver = "2"

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

[[test]]
name = "custom_sapi"
path = "tests/custom_sapi.rs"

[[test]]
name = "data_passing"
path = "tests/data_passing.rs"

[[test]]
name = "extension_compat"
path = "tests/extension_compat.rs"

[[test]]
name = "fatal_error"
path = "tests/fatal_error.rs"

[[test]]
name = "opcache_warmup"
path = "tests/opcache_warmup.rs"

[[test]]
name = "poc_ffi"
path = "tests/poc_ffi.rs"

[[test]]
name = "worker_pool"
path = "tests/worker_pool.rs"

[dependencies.anyhow]
version = "1"

[dependencies.async-trait]
version = "0.1"

[dependencies.bytes]
version = "1"

[dependencies.crossbeam-channel]
version = "0.5"

[dependencies.folk-api]
version = "0.1.1"

[dependencies.folk-core]
version = "0.1.1"

[dependencies.folk-protocol]
version = "0.1.1"

[dependencies.rmp-serde]
version = "1"

[dependencies.rmpv]
version = "1"
features = ["with-serde"]

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.tokio]
version = "1"
features = ["full"]

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

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[lints.clippy]
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "warn"
