Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

cairo-rs update breaks pangocairo-sys #116

Closed
vhdirk opened this issue Nov 23, 2018 · 4 comments
Closed

cairo-rs update breaks pangocairo-sys #116

vhdirk opened this issue Nov 23, 2018 · 4 comments

Comments

@vhdirk
Copy link

vhdirk commented Nov 23, 2018

pangocairo fails to compile since the cairo enums have all been exported at the crate root instead of under the 'enums' module.

error[E0433]: failed to resolve. Could not find `enums` in `cairo`                                                                                                                  
  --> /home/dvhaeren/.cargo/git/checkouts/sys-5eecc06807450db7/e10e6ef/pangocairo-sys/src/lib.rs:74:68                                                                              
   |                                                                                                                                                                                
74 |     pub fn pango_cairo_font_map_new_for_font_type(fonttype: cairo::enums::FontType) -> *mut pango::PangoFontMap;                                                               
   |                                                                    ^^^^^ Could not find `enums` in `cairo`                                                                     
                                                                                                                                                                                    
error[E0433]: failed to resolve. Could not find `enums` in `cairo`                                                                                                                  
  --> /home/dvhaeren/.cargo/git/checkouts/sys-5eecc06807450db7/e10e6ef/pangocairo-sys/src/lib.rs:76:90                                                                              
   |                                                                                                                                                                                
76 |     pub fn pango_cairo_font_map_get_font_type(fontmap: *mut PangoCairoFontMap) -> cairo::enums::FontType;                                                                      
   |                      
@EPashkin
Copy link
Member

Thanks for reporting

@vhdirk
Copy link
Author

vhdirk commented Nov 23, 2018

Any preferred way of fixing this? I can supply a PR to cairo to export the 'enum' module, or is this something that needs to be fixed in gir?

@EPashkin
Copy link
Member

I start adding PRs.

@EPashkin
Copy link
Member

PR with EPashkin/pangocairo@201fcdc will be added after sys fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants