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

nightly tc_save_monger

是游戏 Turing Complete 的 save_monger 库的 Rust 重新实现

4 个版本

0.4.5 2022 年 8 月 30 日
0.4.4 2022 年 8 月 30 日
0.3.0 2022 年 8 月 24 日
0.2.2 2022 年 8 月 21 日
0.1.1 2022 年 8 月 21 日

#turing 中排名 7

MIT 许可证

20KB
506 代码行,不包括注释

该包主要暴露的函数是 parse(bytes: &[u8]) -> Circuit

使用示例

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)
}

依赖项

~110KB