[][src]Crate fastnbt

fastnbt aims for fast parsing of NBT data from Minecraft: Java Edition. This format is used by the game to store various things, such as the world data and player inventories.

For documentation and examples of serde deserialization, see the de module.

A lower level parser also exists in the stream module that only requires the Read trait on the input. This parser however doesn't support deserializing to Rust objects directly.

Both this and related crates are under one fastnbt Github repository

Modules

de

This module contains a serde deserializer. It can do most of the things you would expect of a typical serde deserializer, such as deserializing into:

error

Contains the Error and Result type used by the deserializer.

stream

Allows streaming of NBT data without prior knowledge of the structure.

Enums

Tag

An NBT tag. This does not carry the value or the name of the data.

Value

Value is a complete NBT value. It owns it's data. The Byte, Short, Int and Long NBT types are all deserialized into i64. Compounds and Lists are resursively deserialized.