-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Rust: Bump deps & 2021 edition, reexports, clippy #282
Conversation
nyurik
commented
Aug 9, 2023
- Re-export the entire geozero because it has a number of other used traits like Error, so reexporting partial geozero creates more problem than solves
- Switch all crates to 2021 edition
- Cleanup crate.toml - we may want to switch to a proper workspace here
- bump all dependency versions to latest
- Address some clippy warnings
* Re-export the entire geozero because it has a number of other used traits like Error, so reexporting partial geozero creates more problem than solves * Switch all crates to 2021 edition * Cleanup crate.toml - we may want to switch to a proper workspace here * bump all dependency versions to latest * Address some clippy warnings
``` cargo clippy --fix cargo clippy --workspace --allow-dirty --fix --benches --tests --bins -- -A clippy::all -W clippy::uninlined_format_args ```
* rename internal `to_feature` because it breaks Rust naming expectations * add a safety docs to `FgbReader::open_unchecked` -- please doublecheck that it is correct * fix a lot of `.write(...)` to `write_all(...)` - because write does not guarantee how many bytes it will write * removed a few lifetimes - clippy thinks they are not needed * `&Vec<_>` -> `&[_]` * Optimized `PackedRTree::build` iter
cc: @pka |
All good for me, many great improvements! |
thx @pka and @bjornharrtell , feel free to merge and release. I plan a release for geozero with some breaking changes, so the next release beyond these changes may have to be coordinated later too 🤦 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I note that this also upgrades flatbuffers to 23.5.26. I will see to it that this same version is used cross languages. It's not strictly required since the wire format is guaranteed to be compatible forever, but I still feel it's good to align this.
@nyurik do you agree this should be squash merged? |
Sure, I always squash merge |