Dev.to
5/11/2026

Embed mruby as a Single Binary That Runs Everywhere
Short summary
Author describes embedding mruby (lightweight Ruby) with HTTP/HTTPS support into RapidForge as a single portable binary using Cosmopolitan Libc's dual-architecture executable format. The process involved carefully cross-compiling and statically linking zlib, OpenSSL, and libcurl, with solutions for build-system quirks specific to Cosmopolitan's unusual toolchain. The result: a dependency-free binary that runs unmodified on Linux (x86-64/ARM64), macOS, and Windows.
- •Embedded mruby with curl/HTTPS support into RapidForge using Cosmopolitan Libc
- •Statically compiled zlib, OpenSSL, libcurl for dual-arch compatibility (x86-64 + ARM64)
- •Single portable binary with zero dependencies that runs on Linux, macOS, Windows
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



