From 085f4968986e89cbfbf582c14f693012b02c3576 Mon Sep 17 00:00:00 2001 From: Serkyo Date: Fri, 10 Jul 2026 00:26:59 +0200 Subject: [PATCH] chore(workspace): removed leftover mod.rs files --- crates/server/src/save/mod.rs | 13 ------------- crates/shared/src/save/mod.rs | 12 ------------ crates/shared/src/world/mod.rs | 22 ---------------------- 3 files changed, 47 deletions(-) delete mode 100644 crates/server/src/save/mod.rs delete mode 100644 crates/shared/src/save/mod.rs delete mode 100644 crates/shared/src/world/mod.rs diff --git a/crates/server/src/save/mod.rs b/crates/server/src/save/mod.rs deleted file mode 100644 index 92ce02d..0000000 --- a/crates/server/src/save/mod.rs +++ /dev/null @@ -1,13 +0,0 @@ -// SPDX-License-Identifier: AGPL-3.0-only - -//! Server-side persistence: the durability layer over the `shared` save format. -//! -//! `shared::save` owns the pure, in-memory framing (the `SYNR` index and `SYNC` records). This -//! module owns the filesystem side: reading a `.region` file into memory, mutating its chunks, and -//! flushing it back to disk crash-safely. The write strategy is a whole-file atomic rewrite -//! (`.tmp` + fsync + rename); the on-disk format is unchanged, so a later slice can switch to an -//! append-in-place strategy without a format change. - -mod region_file; - -pub use region_file::{REGION_SIZE, RegionFile, region_coords, region_path}; diff --git a/crates/shared/src/save/mod.rs b/crates/shared/src/save/mod.rs deleted file mode 100644 index f7304eb..0000000 --- a/crates/shared/src/save/mod.rs +++ /dev/null @@ -1,12 +0,0 @@ -// SPDX-License-Identifier: AGPL-3.0-only - -//! On-disk save format: the framing that persists modified chunks to region files. -//! -//! The format is built bottom-up. The smallest unit is the `SYNC` per-chunk [`record`], which wraps one [`crate::world::ChunkData`] in a self-describing, compressed frame. Region-level framing (the `SYNR` file and its header table) is layered on top of it. All parsing treats on-disk bytes as untrusted and reports failures through [`SaveError`]. - -mod cursor; -mod error; -pub mod record; -pub mod region; - -pub use error::SaveError; diff --git a/crates/shared/src/world/mod.rs b/crates/shared/src/world/mod.rs deleted file mode 100644 index 2d85aa0..0000000 --- a/crates/shared/src/world/mod.rs +++ /dev/null @@ -1,22 +0,0 @@ -// SPDX-License-Identifier: AGPL-3.0-only - -//! Core data structures representing the voxel world. -//! -//! The module is split by concept: [`BlockId`] material handles, the [`Chunk`] storage forms, chunk-space coordinates in [`ChunkPos`], and precision-safe entity positions in [`EntityPos`]. Each lives in its own submodule and is re-exported here so callers continue to refer to `shared::world::` regardless of the internal layout. - -mod block; -mod chunk; -mod chunk_data; -mod coords; -mod entity; - -pub use block::BlockId; -pub use chunk::{Chunk, PalettedChunk}; -pub use chunk_data::ChunkData; -pub use coords::ChunkPos; -pub use entity::EntityPos; - -/// The size of a chunk along one axis in blocks. -pub const CHUNK_SIZE: usize = 32; -/// The total number of blocks within a single chunk. -pub const CHUNK_VOLUME: usize = CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE;