valence/valence_nbt/Cargo.toml
Ryan Johnson 2cd8bd2195
Replace HashMap with BTreeMap in valence_nbt (#98)
* Replace HashMap with BTreeMap in valence_nbt

Turns out that `BTreeMap`s are a bit faster when the element count is low.

This change also makes debugging compounds a bit easier since the elements are displayed in sorted order.

* Simplify read_list function slightly
2022-10-01 15:36:04 -07:00

22 lines
608 B
TOML

[package]
name = "valence_nbt"
description = "A library for Minecraft's Named Binary Tag (NBT) format."
documentation = "https://docs.rs/valence_nbt/"
repository = "https://github.com/valence-rs/valence_nbt"
readme = "README.md"
license = "MIT"
keywords = ["nbt", "minecraft", "serialization"]
version = "0.2.0"
authors = ["Ryan Johnson <ryanj00a@gmail.com>"]
edition = "2021"
[dependencies]
byteorder = "1.4.3"
cesu8 = "1.1.0"
indexmap = { version = "1.9.1", optional = true }
zerocopy = "0.6.1"
[features]
# When enabled, the order of fields in compounds are preserved.
preserve_order = ["dep:indexmap"]