You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Win2D library in a way shown in windows-samples-rs/win2d. When I'm trying to import Microsoft::Graphics::Canvas::Text::CanvasTextLayout I'm getting compilation error
error[E0277]: `Rect` doesn't implement `Debug`
--> C:\projects\rust\wag\target\debug\build\bindings-596a2b6b6583e9c0\out/windows.rs:3762:52
|
3762 | ... .field("LayoutBounds", &self.LayoutBounds)
| ^^^^^^^^^^^^^^^^^^ `Rect` cannot be formatted using `{:?}` because it doesn't implement `Debug`
|
= help: the trait `Debug` is not implemented for `Rect`
= note: required for the cast to the object type `dyn Debug`
milyin
changed the title
Bug: Compile error 'Debug' trait not implemented for 'Rect' in code generated by windows::core::build!
Bug: Compile error "'Debug' trait not implemented for 'Rect'" in code generated by windows::core::build!
Dec 29, 2021
Which crate is this about?
windows
Crate version
0.29
Summary
I'm trying to use Win2D library in a way shown in windows-samples-rs/win2d. When I'm trying to import Microsoft::Graphics::Canvas::Text::CanvasTextLayout I'm getting compilation error
bindings/build.rs:
Dependencies in bindings/Cargo.toml
autogenerated code causing compilation error:
Link to project with error
https://github.com/milyin/windows-samples-rs/tree/master/win2d
Expected behavior
No response
Actual behavior
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered: