main
Zynh0722 2023-11-23 17:52:50 -08:00
commit 06bb57ef44
5 changed files with 36 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

16
Cargo.lock generated Normal file
View File

@ -0,0 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "anyhow"
version = "1.0.75"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4668cab20f66d8d020e1fbc0ebe47217433c1b6c8f2040faf858554e394ace6"
[[package]]
name = "factorio_types"
version = "0.1.0"
dependencies = [
"anyhow",
]

9
Cargo.toml Normal file
View File

@ -0,0 +1,9 @@
[package]
name = "factorio_types"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
anyhow = "1.0.75"

BIN
mod-settings.dat Normal file

Binary file not shown.

10
src/lib.rs Normal file
View File

@ -0,0 +1,10 @@
use std::collections::HashMap;
pub enum PropertyTree {
None,
Bool(bool),
Number(f64),
String(String),
List(Vec<PropertyTree>),
Dictionary(HashMap<String, PropertyTree>),
}