#run-time #cc #load #platform #compile #dynamically #host

compile-in-memory

A library to dynamically compile and load C/C++ code at runtime, using the platform's host compiler

2 unstable releases

0.2.0 Oct 30, 2023
0.0.1 Jul 6, 2023

#1346 in Development tools

23 downloads per month

MIT/Apache

44KB
952 lines

Mandelbrot/Fractal Viewer

Requirements

  • amd64 Linux (other archs/platforms may work but have not been tested. Only unix-like platforms with the memfd_create system call will work with custom fractals).
  • Cargo + Rust (rustup). Nightly is required for custom fractals.
  • libgtk-3-dev, libgtk-3-0. Gcc with _Float128 support is required for custom fractals.

Building and Running

To run with custom fractals enabled:

cargo +nightly run --bin mandelbrot --release

To run with custom fractals disabled:

cargo +stable run --bin mandelbrot --release --no-default-features

Examples

(With custom fractals enabled)

An example of the fractal viewer running with custom fractals enabled

(With custom fractals disabled)

An example of the fractal viewer running with custom fractals disabled

Dependencies

~42KB