big endian build broken since introduction of rgb crate (2.48.5)
9e7da97e breaks big endian as the ARGB* formats are under feature = argb
which is not enabled by default.
error[E0432]: unresolved import `rgb::alt::ARGB8`
--> rsvg_internals/src/surface_utils/mod.rs:17:5
|
17 | use rgb::alt::ARGB8;
| ^^^^^^^^^^^^^^^ no `ARGB8` in `alt`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: could not compile `rsvg_internals`.
Tested on powerpc(64).
Changing Cargo.toml
to do rgb = {version = "0.8.17", features = ["argb"]}
makes it fail later:
error[E0277]: the trait bound `[u8]: rgb::internal::convert::AsPixels<rgb::alt::ARGB<u8>>` is not satisfied
--> rsvg_internals/src/surface_utils/shared_surface.rs:1200:39
|
1200 | let pixels = row_of_bytes.as_pixels();
| ^^^^^^^^^ the trait `rgb::internal::convert::AsPixels<rgb::alt::ARGB<u8>>` is not implemented for `[u8]`
|
= help: the following implementations were found:
<[T] as rgb::internal::convert::AsPixels<rgb::RGB<T>>>
<[T] as rgb::internal::convert::AsPixels<rgb::RGBA<T>>>
<[T] as rgb::internal::convert::AsPixels<rgb::alt::BGR<T>>>
<[T] as rgb::internal::convert::AsPixels<rgb::alt::BGRA<T>>>
and 2 others
error[E0277]: the trait bound `[u8]: rgb::internal::convert::AsPixels<rgb::alt::ARGB<u8>>` is not satisfied
--> rsvg_internals/src/surface_utils/shared_surface.rs:1227:39
|
1227 | let pixels = row_of_bytes.as_pixels_mut();
| ^^^^^^^^^^^^^ the trait `rgb::internal::convert::AsPixels<rgb::alt::ARGB<u8>>` is not implemented for `[u8]`
|
= help: the following implementations were found:
<[T] as rgb::internal::convert::AsPixels<rgb::RGB<T>>>
<[T] as rgb::internal::convert::AsPixels<rgb::RGBA<T>>>
<[T] as rgb::internal::convert::AsPixels<rgb::alt::BGR<T>>>
<[T] as rgb::internal::convert::AsPixels<rgb::alt::BGRA<T>>>
and 2 others
error: aborting due to 2 previous errors