# mruby-embed **Repository Path**: mirrors_simi/mruby-embed ## Basic Information - **Project Name**: mruby-embed - **Description**: Example project that embeds mruby. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-10-27 - **Last Updated**: 2026-02-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## mruby-embed Example project that embeds [mruby] and Ruby code into a statically linked executable. All Ruby code in the `lib/` directory is compiled into mruby IR code using the `mrbc` utility. The IR code is then embedded in `src/lib.c` as an array of `uint8_t` data, which is loaded via `mruby_load_ireps`. All C code within `src/` is then compiled and linked against `libmruby.a`, resulting in a static binary that runs the Ruby code. ### Build rake ### Run $ ./bin >> 1 + 1 => 2 [mruby]: https://github.com/mruby/mruby