2 unstable releases

0.2.0 Sep 23, 2023
0.1.0 May 16, 2023

#2673 in Parser implementations

Download history 2/week @ 2024-06-05 1/week @ 2024-06-12 12/week @ 2024-07-24 35/week @ 2024-07-31 90/week @ 2024-08-07 120/week @ 2024-08-14 245/week @ 2024-08-21 324/week @ 2024-08-28 98/week @ 2024-09-04

701 downloads per month
Used in sandstone

MIT/Apache

54KB
1.5K SLoC

fastsnbt crate

Documentation: docs.rs

Fast serde deserializer and serializer for Minecraft: Java Edition's sNBT format.

Zero-copy is supported where possible through from_str.

See fastnbt's documentation for more information.

[dependencies]
fastsnbt = "2"

fastsnbt follows Semver, some things that this project does not count as a breaking change are:

  • Minimum Rust version change. Outside of corporate environments this should not be too difficult, and I don't see much need for sNBT in those environments.
  • Improving the (de)serializer such that valid sNBT that did not (de)serialize, then (de)serializes. Any of these cases I consider a bug.

Changes that make fastsnbt incompatible with WebAssembly are considered breaking changes.

NBT crate

fastsnbt tightly cooperates with fastnbt. It serves more as an extension to fastnbt than a standalone crate. For NBT types, Value etc. see fastnbt's docs here.

Dependencies

~1–1.6MB
~29K SLoC