Skip to content

Commit

Permalink
Release fastanvil and fastsnbt
Browse files Browse the repository at this point in the history
  • Loading branch information
owengage committed Sep 23, 2023
1 parent 8a7c0e1 commit a7f24f4
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 17 additions & 7 deletions README.md
Expand Up @@ -5,6 +5,10 @@
[![fastnbt-docs-shield]][fastnbt-docs]
[![build-status-shield]][github-actions]

![fastsnbt-shield]
[![fastsnbt-version-shield]][fastnbt-crates]
[![fastsnbt-docs-shield]][fastnbt-docs]

![fastanvil-shield]
[![fastanvil-version-shield]][fastanvil-crates]
[![fastanvil-docs-shield]][fastanvil-docs]
Expand All @@ -13,9 +17,15 @@

[fastnbt-shield]: https://img.shields.io/badge/%20-FastNBT-blue
[fastnbt-version-shield]: https://img.shields.io/crates/v/fastnbt.svg
[fastnbt-crates]: https://crates.io/crates/fastnbt
[fastnbt-docs-shield]: https://img.shields.io/docsrs/fastnbt
[fastnbt-docs]: https://docs.rs/fastnbt/latest/fastnbt/index.html
[fastnbt-docs-shield]: https://img.shields.io/docsrs/fastnbt

[fastsnbt-shield]: https://img.shields.io/badge/%20-FastSNBT-blue
[fastsnbt-version-shield]: https://img.shields.io/crates/v/fastsnbt.svg
[fastsnbt-docs]: https://docs.rs/fastnbt/latest/fastsnbt/index.html
[fastsnbt-docs-shield]: https://img.shields.io/docsrs/fastsnbt

[fastnbt-crates]: https://crates.io/crates/fastnbt
[build-status-shield]: https://img.shields.io/github/actions/workflow/status/owengage/fastnbt/rust.yml?branch=master
[github-actions]: https://github.com/owengage/fastnbt/actions?query=branch%3Amaster
[fastanvil-shield]: https://img.shields.io/badge/%20-FastAnvil-blue
Expand All @@ -27,15 +37,15 @@
FastNBT is a [serde](https://serde.rs/) serializer and deserializer for
_Minecraft: Java Edition's_ NBT format, including
[`Value`](https://docs.rs/fastnbt/latest/fastnbt/enum.Value.html) type and
[`nbt!`](https://docs.rs/fastnbt/latest/fastnbt/macro.nbt.html) macro.
[`nbt!`](https://docs.rs/fastnbt/latest/fastnbt/macro.nbt.html) macro. For
stringified NBT (sNBT) see FastSNBT.

FastAnvil allows rendering maps of worlds, and a
[`Region`](https://docs.rs/fastanvil/latest/fastanvil/struct.Region.html) for
using the Region file format.
using the Region file format. Includes partial support for 1.12 worlds.

An in-browser Rust-to-WASM powered Minecraft map renderer demo is below.
Supports 1.19 down to 1.15 inclusive. There is also a Tauri desktop UI
application under `app`.
Supports 1.19 down to 1.15 inclusive.

# Demos

Expand Down Expand Up @@ -148,7 +158,7 @@ For the libraries
```toml
[dependencies]
fastnbt = "2"
fastanvil = "0.29"
fastanvil = "0.30"
```

For the `anvil` executable
Expand Down
4 changes: 2 additions & 2 deletions fastanvil/Cargo.toml
Expand Up @@ -2,7 +2,7 @@
name = "fastanvil"
description = "Minecraft Anvil library"
repository = "https://github.com/owengage/fastnbt"
version = "0.29.0"
version = "0.30.0"
authors = ["Owen Gage <owengage@gmail.com>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand All @@ -20,7 +20,7 @@ once_cell = "1.9"
# Deps for render feature.
image = { version = "0.23", default-features = false, optional = true }
tar = { version = "0.4", default-features = false, optional = true }
serde_json = { version = "1.0", default-features = false, optional = true }
serde_json = { version = "1.0", optional = true }

[dev-dependencies]
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion fastsnbt/Cargo.toml
Expand Up @@ -3,7 +3,7 @@ name = "fastsnbt"
description = "Serde deserializer for Minecraft's stringified NBT format"
repository = "https://github.com/owengage/fastnbt"
readme = "README.md"
version = "0.1.0"
version = "0.2.0"
authors = ["Owen Gage <owengage@gmail.com>", "GrizzlT <grizz@falconmc.org>"]
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion tools/Cargo.toml
Expand Up @@ -8,7 +8,7 @@ license = "MIT OR Apache-2.0"

[dependencies]
fastnbt = { path = "../fastnbt", version = "2" }
fastanvil = { path = "../fastanvil", version = "0.29" }
fastanvil = { path = "../fastanvil", version = "0.30" }
rayon = "1.3.0"
flate2 = "1.0"
image = "0.23.4"
Expand Down

0 comments on commit a7f24f4

Please sign in to comment.