minetestworld
This crate lets you read minetest worlds in a low-level way.
Usage
As this crate returns async-std based futures, you have to specify that along the dependencies:
[]
= "0.5"
= "1"
Here is an example that reads all nodes of a specific map block:
use ;
use task;
Selectable backends
The Cargo features sqlite, redis, and postgres enable the respective map data backend. They are enabled by default and can be selected individually:
[]
= { = "0.5", = false, = [ "sqlite" ] }
This crate only compiles if at least one backend is enabled, because it becomes pointless without.
See minetest-worldmapper for a real-world example.