Restructure crates

Get rid of the arbitrary bin/lib split and instead move as much as
possible into the bin crate, which becomes the main crate again.

The types and NBT handling are moved into separate crates, so they can
be reused by nbtdump and regiondump.
This commit is contained in:
Matthias Schiffer 2023-08-20 16:28:10 +02:00
parent 09399f5ae9
commit 248a641035
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
21 changed files with 121 additions and 62 deletions

25
Cargo.lock generated
View file

@ -558,17 +558,16 @@ version = "0.1.0"
dependencies = [
"anyhow",
"bincode",
"bytemuck",
"clap",
"enumflags2",
"fastnbt",
"flate2",
"futures-util",
"glam",
"image",
"indexmap",
"itertools",
"lru",
"minedmap-nbt",
"minedmap-types",
"num-integer",
"num_cpus",
"rayon",
@ -579,6 +578,26 @@ dependencies = [
"zstd",
]
[[package]]
name = "minedmap-nbt"
version = "0.1.0"
dependencies = [
"anyhow",
"bytemuck",
"fastnbt",
"flate2",
"minedmap-types",
"serde",
]
[[package]]
name = "minedmap-types"
version = "0.1.0"
dependencies = [
"itertools",
"serde",
]
[[package]]
name = "miniz_oxide"
version = "0.7.1"