mirror of
https://github.com/neocturne/MinedMap.git
synced 2025-03-04 17:23:33 +01:00
Move resource module to a separate crate
The resource module does not depend on any other part of MinedMap.
This commit is contained in:
parent
248a641035
commit
228f31c568
10 changed files with 25 additions and 5 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
@ -559,7 +559,6 @@ dependencies = [
|
|||
"anyhow",
|
||||
"bincode",
|
||||
"clap",
|
||||
"enumflags2",
|
||||
"fastnbt",
|
||||
"futures-util",
|
||||
"glam",
|
||||
|
@ -567,6 +566,7 @@ dependencies = [
|
|||
"indexmap",
|
||||
"lru",
|
||||
"minedmap-nbt",
|
||||
"minedmap-resource",
|
||||
"minedmap-types",
|
||||
"num-integer",
|
||||
"num_cpus",
|
||||
|
@ -590,6 +590,15 @@ dependencies = [
|
|||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "minedmap-resource"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"enumflags2",
|
||||
"glam",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "minedmap-types"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -12,7 +12,6 @@ default-run = "minedmap"
|
|||
anyhow = "1.0.68"
|
||||
bincode = "1.3.3"
|
||||
clap = { version = "4.1.4", features = ["derive"] }
|
||||
enumflags2 = { version = "0.7.5", features = ["serde"] }
|
||||
fastnbt = "2.3.2"
|
||||
futures-util = "0.3.28"
|
||||
glam = "0.24.0"
|
||||
|
@ -20,6 +19,7 @@ image = { version = "0.24.5", default-features = false, features = ["png"] }
|
|||
indexmap = { version = "2.0.0", features = ["serde"] }
|
||||
lru = "0.11.0"
|
||||
minedmap-nbt = { version = "0.1.0", path = "crates/nbt", default-features = false }
|
||||
minedmap-resource = { version = "0.1.0", path = "crates/resource" }
|
||||
minedmap-types = { version = "0.1.0", path = "crates/types" }
|
||||
num-integer = "0.1.45"
|
||||
num_cpus = "1.16.0"
|
||||
|
|
11
crates/resource/Cargo.toml
Normal file
11
crates/resource/Cargo.toml
Normal file
|
@ -0,0 +1,11 @@
|
|||
[package]
|
||||
name = "minedmap-resource"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
enumflags2 = { version = "0.7.7", features = ["serde"] }
|
||||
glam = "0.24.1"
|
||||
serde = "1.0.183"
|
|
@ -63,8 +63,8 @@ with MinedMap's resource metadata.
|
|||
7. Update the source code with the new block colors:
|
||||
|
||||
```sh
|
||||
./generate.py colors.json ../src/resource/block_types.rs
|
||||
cargo fmt
|
||||
./generate.py colors.json ../crates/resource/src/block_types.rs
|
||||
cargo fmt --all
|
||||
```
|
||||
|
||||
After the update, the new version should be tested with old savegames (both
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
mod core;
|
||||
mod io;
|
||||
mod resource;
|
||||
mod util;
|
||||
mod world;
|
||||
|
||||
use minedmap_nbt as nbt;
|
||||
use minedmap_resource as resource;
|
||||
use minedmap_types as types;
|
||||
|
||||
use anyhow::Result;
|
||||
|
|
Loading…
Add table
Reference in a new issue