mindustry logic execution, map- and schematic- parsing and rendering
seperate bin
bendn 2023-08-01
parent bedc2a5 · commit b7ea84c
-rw-r--r--Cargo.toml12
-rw-r--r--src/data/map.rs1
2 files changed, 7 insertions, 6 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5d0b724..1d8498c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "mindus"
-version = "1.4.8"
+version = "1.4.9"
edition = "2021"
description = "A library for working with mindustry data formats (eg schematics and maps) (fork of plandustry)"
authors = [
@@ -16,8 +16,7 @@ flate2 = { version = "1.0", features = ["zlib"], default-features = false }
base64 = "0.21"
paste = "1.0"
strconv = "0.1"
-# png feature not needed; only for binary. todo seperate bin
-image = { version = "0.24", features = ["png"], default-features = false }
+image = { version = "0.24", features = [], default-features = false }
color-hex = "0.2"
thiserror = "1.0"
bobbin-bits = "0.1"
@@ -27,14 +26,17 @@ phf = { version = "0.11", features = ["macros"] }
[features]
schem_shadow = ["dep:blurslice"]
map_shadow = ["dep:blurslice"]
-default = ["schem_shadow", "map_shadow"]
+bin = ["image/png"]
+default = ["schem_shadow", "bin"]
[build-dependencies]
image = { version = "0.24", features = ["png"], default-features = false }
walkdir = "2"
[[bin]]
-name = "plandustry"
+name = "mindus"
+doc = false
+required-features = ["bin"]
path = "src/exe/mod.rs"
[profile.release]
diff --git a/src/data/map.rs b/src/data/map.rs
index 355aaf3..4bf26cf 100644
--- a/src/data/map.rs
+++ b/src/data/map.rs
@@ -636,7 +636,6 @@ impl<'l> Serializer<Map<'l>> for MapSerializer<'l> {
})?;
// skip custom chunks
buff.skip_chunk()?;
- println!("desered");
Ok(m.unwrap())
}