feather-rs / feather

A Minecraft server implementation in Rust
Apache License 2.0
2.58k stars 142 forks source link

Update hecs to upstream 0.7 #533

Open Plecra opened 2 years ago

Plecra commented 2 years ago

Status

Description

I have bumped the hecs version to 0.7, and removed the dependency on the git version.

This mostly involved small changes to compensate for Entity::from_bits being fallible now. The biggest change was reimplementing the DynamicQuery logic (from https://github.com/feather-rs/feather-hecs/commit/87d8d00ac885f9a48b7dd433e245c250cd90737e) in-tree.

The new implementation should behave identically to the old code, with a couple small optimizations. There is room for more optimization too :) This is the change that I hope someone can fully review

Related issues

Checklist

Note: if you locally don't get any errors, but GitHub Actions fails (especially at clippy) you might want to check your rust toolchain version. You can then feel free to fix these warnings/errors in your PR.