v0.2.2
Alpine Linux Support
Pre-built binaries and Docker install images now available for Alpine Linux (musl libc). Fixes #9.
What's New
- Alpine binary builds —
linux-musl.sofiles for PHP 8.2/8.3/8.4/8.5 on x86_64 and ARM64, both NTS and ZTS. Asset names follow the standard PIE convention:php_grpc-v0.2.2_php{X.Y}-{arch}-linux-musl.zip(and-ztsvariant). - Alpine Docker images —
latest-php{X.Y}-alpineandlatest-php{X.Y}-alpine-ztstags pushed toghcr.io/bsn4/grpc-php-rs. The image bundleslibgcc_s.so.1so users don't needapk add libgccseparately.
Usage
FROM php:8.5-alpine
COPY --from=ghcr.io/bsn4/grpc-php-rs:latest-php8.5-alpine /usr/local/ /usr/local/For ZTS Alpine (FrankenPHP, Swoole on Alpine):
COPY --from=ghcr.io/bsn4/grpc-php-rs:latest-php8.5-alpine-zts /usr/local/ /usr/local/Or via PIE:
pie install bsn4/grpcPIE auto-detects musl and downloads the right binary.
Technical Notes
Rust's musl target is static-only by default and rejects cdylib output. We set RUSTFLAGS="-C target-feature=-crt-static" to enable dynamic linking. Manual binary downloads on Alpine (without using the Docker install image) need apk add --no-cache libgcc since the .so depends on libgcc_s.so.1 at runtime.
Full Changelog: v0.2.1...v0.2.2