Rename library crate to minedmap-core

Rustdoc can't deal with a bin and lib crate with the same name.
This commit is contained in:
Matthias Schiffer 2023-08-18 19:20:21 +02:00
parent 0542f2ea11
commit 0842cb4ec2
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
10 changed files with 36 additions and 28 deletions

View file

@ -4,18 +4,20 @@ use anyhow::{Context, Result};
use indexmap::IndexSet;
use rayon::prelude::*;
use minedmap::{
io::{fs, storage},
resource::{self, Biome},
types::*,
world::{
use super::{
common::*,
core::{
self,
layer::{self, LayerData},
io::{fs, storage},
resource::{self, Biome},
types::*,
world::{
self,
layer::{self, LayerData},
},
},
};
use super::common::*;
/// Parses a filename in the format r.X.Z.mca into the contained X and Z values
fn parse_region_filename(file_name: &OsStr) -> Option<TileCoords> {
let parts: Vec<_> = file_name.to_str()?.split('.').collect();
@ -136,7 +138,7 @@ impl<'a> RegionProcessor<'a> {
println!("Processing region r.{}.{}.mca", coords.x, coords.z);
minedmap::io::region::from_file(path)?.foreach_chunk(
core::io::region::from_file(path)?.foreach_chunk(
|chunk_coords, data: world::de::Chunk| {
let Some(layer::LayerData {
blocks,