#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

#34 in #programs

Download history 276/week @ 2024-12-02 9/week @ 2024-12-09

285 downloads per month

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