Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mcpe example #46

Merged
merged 2 commits into from
May 15, 2024
Merged

Fix mcpe example #46

merged 2 commits into from
May 15, 2024

Conversation

KAIYOHUGO
Copy link
Contributor

Fix #45 and add detail comment about how mojang's implementation work.

@dermesser dermesser merged commit 3a6dc9c into dermesser:master May 15, 2024
6 checks passed
Offroaders123 added a commit to Offroaders123/player-editor that referenced this pull request Jan 20, 2025
Found documentation and an example of how to use `rusty-leveldb` with a setup that allows for the compression types that Mojang uses for Bedrock! I think this means that `rusty-leveldb` might actually be fully compatible with what `leveldb-zlib` does in Node. This is great! Let alone having it all in Rust, but it might even allow for running this in WASM afterall, that's still hypothetical though, we'll see. More than anything else though, I love that the compression for this is fully plug-n-play, you don't have to change the code for `rusty-leveldb` itself to modify the compression it uses, you just pass in the list of ones you want to define, and what you want to write with.

dermesser/leveldb-rs#45
dermesser/leveldb-rs#46
dermesser/leveldb-rs@fcefa22
https://github.com/dermesser/leveldb-rs/blob/master/examples/mcpe/src/main.rs ⭐️
https://github.com/dermesser/leveldb-rs/blob/master/examples/asyncdb-tokio/src/main.rs (yay! I was curious about if I could make the DB usage async)
https://github.com/Frommi/miniz_oxide
https://github.com/richgel999/miniz
https://docs.rust-embedded.org/book/intro/no-std.html (would this be helpful for WASM?)
https://doc.rust-lang.org/book/ch19-06-macros.html (nice learning material)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix the mcpe example
2 participants