//! PHP host-function surface owned by the gRPC plugin (feature `php-ext`).
//!
//! Historically `folk_grpc_descriptors` was emitted as a Rust string by
//! folk-builder's codegen (with a `has_grpc` gate) — an ownership inversion where
//! the builder "knew" about a gRPC-specific function. This module moves that
//! ownership into the plugin: the plugin declares its PHP surface as real,
//! reviewable, clippy-checked Rust, and folk-builder simply calls
//! [`register_php_functions`] when the gRPC plugin is in the build
//! (folk-releases#89).
use Binary;
use *;
use crateexport_descriptors;
/// Compile `paths` (proto files, cwd-relative) into an encoded
/// `FileDescriptorSet` and return the raw bytes.
///
/// Reuses the plugin's standalone [`export_descriptors`] (proto → FDS, no server
/// boot, no protoc), so the codegen SDK can obtain descriptors in-process — the
/// counterpart to the `folk-server grpc:descriptors` subprocess path.
// ext-php-rs requires owned types
/// Register the gRPC plugin's PHP host functions on `module` and return it.
///
/// Called by folk-builder's generated `get_module` (after
/// `folk_ext::register_core_functions`) when this plugin is present.