#save #complete #turing #circuit #byte #game #parse

nightly tc_save_monger

a reimplementation in Rust of the save_monger library for the game Turing Complete

4 releases

0.4.5 Aug 30, 2022
0.4.4 Aug 30, 2022
0.3.0 Aug 24, 2022
0.2.2 Aug 21, 2022
0.1.1 Aug 21, 2022

#9 in #turing

MIT license

20KB
506 lines

the main exposed function of the crate is parse(bytes: &[u8]) -> Circuit

example of usage:

use tc_save_monger::{parse, Circuit};
use std::fs;

fn parse_from_file(path: &str) -> Circuit {
    let bytes = fs::read(path).expect("error reading file");
    parse(&bytes)
}

Dependencies

~110KB