Ian Smith
Ian Smith
To add on to @chorman0773's point, here is a (correctly failing) loom test demonstrating that `Relaxed` ordering causes UB: ```rs fn main() { use loom::{sync::atomic::{AtomicUsize, Ordering, fence}, cell::UnsafeCell, thread}; use...
With some [recent improvements](https://github.com/rust-lang/rust/issues/93740) that will hopefully land soon in std, using parking lot to eek out a bit of extra performance won't be necessary. Furthermore, parking lot actually backs...
That was my thought as well, I just was unsure of the implications of always returning the lock after poisoning. For instance it could easily be changed to this: ```rs...
The part where it said "Any future attempts to lock the Mutex will return an `Err` or panic." concerned me due to the panic possibility, but I dug through the...
The reason this happens is that the NBT deserializer reads bytes as requested, i.e. it does not parse the NBT before mapping it into Rust's data model. What's happening is...
Thanks for taking the time to put up this contribution! One minor nit: `&Vec` is generally something you never see explicitly stated in Rust code, and this is because it...
Bedrock edition actually makes quite a few changes to NBT format. They store some integers and longs as variable-length integers using zig-zag encoding; there are different variations of the format...
I do not know of any rust NBT libraries which support bedrock unfortunately. [This wiki](https://wiki.vg/NBT) explains the Java format as well as how bedrock differs from it. I will be...