Commit graph

579 commits

Author SHA1 Message Date
a8eb2da95d
Use tracing for configurable logging 2023-09-19 23:29:05 +02:00
e57ec81d96
ci: strip release binaries 2023-09-17 22:33:58 +02:00
fcd05b5e1c
Revert "ci: add shorter labels for target OS names again"
This reverts commit f898116209.

Let's keep the full target names to stay compatible with cargo-binstall
(and possibly cargo-dist in the future).
2023-09-17 21:45:36 +02:00
f898116209
ci: add shorter labels for target OS names again 2023-09-17 20:01:59 +02:00
92fb2a9ba5
ci: remove unused env GH_TOKEN 2023-09-17 19:58:21 +02:00
63b9f085e1
ci: add Rust build 2023-09-17 19:24:16 +02:00
a153889ce6
Update dependencies 2023-09-17 19:24:16 +02:00
646534c755
Cargo.toml: add workspace readme key
cargo-outdated requires the key to be set to allow inheriting it.
2023-09-17 19:24:16 +02:00
7cc6fca7fe
ci: merge ci.yml into MinedMap.yml, update actions 2023-09-17 19:24:15 +02:00
b5a5c72142
ci: update to actions/checkout@v4 2023-09-17 13:27:47 +02:00
4ef0200804
core: display version number based on git-describe 2023-08-27 14:27:40 +02:00
007c5f72fc
Add Code of Conduct
Add the Contributor Covenant as a Code of Conduct.
2023-08-25 21:43:31 +02:00
d39e35508f
ci: add Rust CI
Check rustfmt/clippy/tests.
2023-08-22 12:31:40 +02:00
14e57d2085
Cargo.toml: add excludes 2023-08-21 22:01:37 +02:00
b0ad1d8765
Cargo.toml: remove redundant default-run 2023-08-21 21:53:22 +02:00
c010ee9194
Prepare for crates.io release 2023-08-21 21:51:01 +02:00
8e369f33fd
Add license and repository info to all crates 2023-08-21 21:50:57 +02:00
4f3b43e4a4
Add missing serde derive feature to Cargo.toml 2023-08-21 17:07:03 +02:00
43dfa6c544
Update dependencies 2023-08-21 15:02:06 +02:00
2544ee9e80
Move nbtdump and regiondump examples to minedmap-nbt crate 2023-08-21 15:01:48 +02:00
810a05ab36
Move nbtdump and regiondump commands to examples
Do not install the development utilities with minedmap
2023-08-21 13:21:18 +02:00
1616f3b2e2
Add --version command line argument 2023-08-21 13:19:00 +02:00
003b48951b
world: fix deserialize of unpopulated 1.18+ sections 2023-08-20 19:11:12 +02:00
42a800e08c
README.md: fix link syntax 2023-08-20 17:57:59 +02:00
0273e7bc08
README.md: update for Rust rewrite 2023-08-20 17:49:37 +02:00
5fc296fc44
Fix binary usage comments 2023-08-20 17:04:55 +02:00
228f31c568
Move resource module to a separate crate
The resource module does not depend on any other part of MinedMap.
2023-08-20 17:00:10 +02:00
248a641035
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.
2023-08-20 17:00:10 +02:00
09399f5ae9
Update dependencies 2023-08-20 16:28:20 +02:00
9ec1c03ce1
Only name library crate rather than whole package "minedmap-core" 2023-08-20 14:15:29 +02:00
3cb65ec70e
resource/block_types: update for Minecraft 1.20 2023-08-20 13:42:06 +02:00
204d0d06d5
resource/biomes: add Minecraft 1.20 support
Add the new Cherry Grove biome.
2023-08-20 13:42:04 +02:00
05a8056cbf
Add documentation comments for all items 2023-08-20 11:21:29 +02:00
ba86dc8c06
resource: use serde feature of enumflags2 crate 2023-08-19 16:01:51 +02:00
0842cb4ec2
Rename library crate to minedmap-core
Rustdoc can't deal with a bin and lib crate with the same name.
2023-08-18 19:20:21 +02:00
0542f2ea11
resource/README.md: update for Rust implementation 2023-08-18 18:34:47 +02:00
2a92eefd09
resource/generate.py: fix usage message 2023-08-18 18:34:12 +02:00
427a992897
minedmap/tile_renderer: keep HashSet of populated regions
Rather than attemping to read the file metadata, it's more elegant to
check whether a tile is supposed to be available first.
2023-08-15 20:48:41 +02:00
722fe00d77
minedmap: move inputs to processing steps from run() to new() 2023-08-15 18:45:38 +02:00
6a82fcc9b4
minedmap/tile_renderer: terminate on errors
Only the processing step may fail for individual tiles (when a region is
currently being saved when attempting to process it), the other steps
should never fail.
2023-08-15 18:31:53 +02:00
155171803d
minedmap/tile_renderer: parallel processing 2023-08-15 17:43:58 +02:00
b5980b82af
minedmap/tile_renderer: async region cache
Prepare for sharing the region cache between multiple threads by making
lookup/load async.
2023-08-15 17:42:27 +02:00
dcc9e6e794
minedmap/region_group: add async map functions 2023-08-15 17:39:42 +02:00
78fe1ec50e
minedmap: add support for parallel processing
For now, only RegionProcessor and TileMipmapper are run in parallel.
2023-08-14 22:38:21 +02:00
c1260a63b5
minedmap: separate collection for region list from preprocessing
Preparation for parallel processing, as well as a fix for regions
missing from later steps when the initial processing failed (rather than
using the processed data from a previous run).
2023-08-14 14:27:52 +02:00
d5ac38ed9b
util: split to_flat_coord() and from_flat_coord() out of coord_offset() 2023-08-13 23:01:45 +02:00
4a824680a9
Update dependencies 2023-08-13 12:16:11 +02:00
9c4161f688
util: turn range check into debug_assert!()
More performance optimization.
2023-08-06 12:33:29 +02:00
21035a1f7f
Move coord offset to new util module, make more efficient
div_floor_mod() generates inefficient code. For power-of-2 divisors,
shift and mask can be used instead.
2023-08-06 11:26:08 +02:00
b80d9ee420
minedmap/tile_renderer: make biome HashMap more efficient
Using a u32 instead of a tuple makes the hash calculation faster,
because the fields don't have to be hashed separately.
2023-08-06 00:07:46 +02:00