Crates.io | tc_save_monger |
lib.rs | tc_save_monger |
version | 0.4.5 |
source | src |
created_at | 2022-08-20 22:05:06.66529 |
updated_at | 2022-08-30 23:41:58.420704 |
description | a reimplementation in Rust of the save_monger library for the game Turing Complete |
homepage | |
repository | |
max_upload_size | |
id | 649496 |
size | 19,544 |
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)
}