#random #programs #generate

rustaveli

A library to generate random c programs

2 releases

0.1.1 Dec 2, 2024
0.1.0 Dec 2, 2024

#980 in Development tools

MIT license

28KB
760 lines

Rustaveli

Rustaveli - A library to generate random C programs.

Usage

View example code bellow:

use rustaveli::RandomCFile;

fn main() {
    let c_file = RandomCFile::new(3, 2);
    let code = c_file.finish();

    println!("Generated {} bytes.", code.len());
}

Dependencies

~1.4–6MB
~28K SLoC