juliangaal / mpu6050

MPU6050 embedded-hal driver written in Rust
https://crates.io/crates/mpu6050
MIT License
52 stars 31 forks source link

Update nalgebra requirement from 0.24.1 to 0.31.2 #52

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Updates the requirements on nalgebra to permit the latest version.

Changelog

Sourced from nalgebra's changelog.

[0.31.2] (09 Oct. 2022)

Modified

  • Use #[inline] on the Dim implementation for Const to improve opt-level 1 performance.
  • Make the Point::new constructions const-fn.

Added

  • Add UnitVector::cast to change the underlying scalar type.

[0.31.1] (31 July 2022)

Modified

  • Improve performances of multiplication of two sparse matrices.

Added

  • Add Matrix::from_row_iterator to build a matrix from an iterator yielding components in row-major order.
  • Add support for conversion from/to types of glam 0.21.
  • nalgebra-sparse: add support for the matrix-market export of sparse matrices.
  • nalgebra-lapack: add a GE for solving the generalized eigenvalues problem.

Fixed

  • Fix Rotation3::from_matrix and UnitQuaternion::from_matrix when the input matrix is already a valid rotation matrix.

[0.31.0] (30 Apr. 2022)

Breaking changes

  • Switch to cust 0.3 (for CUDA support).
  • Switch to rkyv 0.7
  • Remove support for serialization based on abomonation.
  • Remove support for conversions between nalgebra types and glam 0.13.

Modified

  • The aliases for Const types have been simplified to help rust-analyzer.

Added

  • Add TryFrom conversion between UnitVector2/3/4 and glam’s Vec2/3/4.
  • nalgebra-sparse: added support for serialization of sparse matrices with serde.
  • nalgebra-sparse: add a CSC matrix constructor from unsorted (but valid) data.
  • nalgebra-lapack: add generalized eigenvalues/eigenvectors calculation + QZ decomposition.

Fixed

  • Improve stability of SVD.
  • Fix slerp for UnitComplex.

[0.30.1] (09 Jan. 2022)

Added

  • Add conversion from/to types of glam 0.19 and 0.20.

... (truncated)

Commits
  • 983e6db Merge pull request #1161 from dimforge/v0.31.2
  • a752a4b Release v0.31.2
  • 202a548 Merge pull request #1156 from dimforge/fix-ci
  • 1870080 Remove const for Point1::new when targetting cuda
  • 1079f0c Add a non-const version of Point::new when the cuda feature is enabled
  • 7adecde Merge pull request #1144 from Patiga/lib-doc-link-items
  • 3aca9af Link listed types in lib.rs to their docs
  • 5cf6afb Merge pull request #1141 from lsh/sparse-clear-triplet
  • 498fbf5 remove unnecessary trait bounds
  • 0eb1f5c 'fix error's
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
rursprung commented 2 years ago

@juliangaal: could you please try to get this update merged? the old version of nalgebra has an out of bounds write error, see CVE-2021-38190. due to nalgebra being 0.x semver doesn't allow crates using your crate to just bump the nalgebra version.

thanks!

juliangaal commented 2 years ago

Don't have time for feature request at the moment, but this I can do. Done.

dependabot[bot] commented 2 years ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

rursprung commented 2 years ago

Don't have time for feature request at the moment, but this I can do. Done.

thank you! can you / will you create a release for this? if possible, maybe also include #43 so that all dependencies are up to date?

juliangaal commented 2 years ago

I am not able to test with the sensor itself atm. Can you help me with this? I'll merge with the i2dev, if you are able to verify it doesn't break anything

rursprung commented 2 years ago

I am not able to test with the sensor itself atm. Can you help me with this? I'll merge with the i2dev, if you are able to verify it doesn't break anything

i've briefly tested this (dev board + a breadboard with some wires, no fancy setup) and i seem to get the same kind of output with my small PoC (note: i'm not processing the data any further, it's roughly equivalent to the example in your README, just adapted for my bare-metal ARM platform), so it seems to work fine.