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

Add quartz functions #115

Merged
merged 1 commit into from
Mar 12, 2017
Merged

Add quartz functions #115

merged 1 commit into from
Mar 12, 2017

Conversation

GuillaumeGomez
Copy link
Member

Fixes #114.

@GuillaumeGomez
Copy link
Member Author

@EPashkin: The build failed locally:

> cargo build
   Compiling c_vec v1.2.0
   Compiling libc v0.2.20
   Compiling cairo-rs v0.1.1 (file:///Users/imperio/rust/cairo)
   Compiling bitflags v0.4.0
   Compiling pkg-config v0.3.9
   Compiling bitflags v0.5.0
   Compiling glib-sys v0.3.2 (https://github.com/gtk-rs/sys#11c911ef)
   Compiling gobject-sys v0.3.2 (https://github.com/gtk-rs/sys#11c911ef)
   Compiling cairo-sys-rs v0.3.2 (file:///Users/imperio/rust/cairo/cairo-sys-rs)
   Compiling glib v0.1.1 (https://github.com/gtk-rs/glib#91f2ceb4)
error[E0405]: cannot find trait `FromGlibPtrNone` in this scope
  --> src/context.rs:53:6
   |
53 | impl FromGlibPtrNone<*mut ffi::cairo_t> for Context {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error[E0405]: cannot find trait `FromGlibPtrFull` in this scope
  --> src/context.rs:62:6
   |
62 | impl FromGlibPtrFull<*mut ffi::cairo_t> for Context {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error[E0405]: cannot find trait `FromGlibPtrNone` in this scope
  --> src/image_surface.rs:96:6
   |
96 | impl FromGlibPtrNone<*mut ffi::cairo_surface_t> for ImageSurface {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error[E0405]: cannot find trait `FromGlibPtrFull` in this scope
   --> src/image_surface.rs:103:6
    |
103 | impl FromGlibPtrFull<*mut ffi::cairo_surface_t> for ImageSurface {
    |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error[E0405]: cannot find trait `FromGlibPtrNone` in this scope
  --> src/rectangle.rs:45:6
   |
45 | impl FromGlibPtrNone<*const ffi::cairo_rectangle_int_t> for RectangleInt {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error[E0405]: cannot find trait `FromGlibPtrNone` in this scope
  --> src/rectangle.rs:52:6
   |
52 | impl FromGlibPtrNone<*mut ffi::cairo_rectangle_int_t> for RectangleInt {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error[E0405]: cannot find trait `FromGlibPtrNone` in this scope
  --> src/surface.rs:53:6
   |
53 | impl FromGlibPtrNone<*mut ffi::cairo_surface_t> for Surface {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error[E0405]: cannot find trait `FromGlibPtrFull` in this scope
  --> src/surface.rs:62:6
   |
62 | impl FromGlibPtrFull<*mut ffi::cairo_surface_t> for Surface {
   |      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ did you mean `FromGlibPtr`?

error: cannot continue compilation due to previous error

error: Could not compile `cairo-rs`.

Any idea?

@EPashkin
Copy link
Member

https://github.com/gtk-rs/glib#91f2ceb4 is too old
delete lock?

@GuillaumeGomez
Copy link
Member Author

Ok, passed locally. However, there is a strange failure on nightly...

@EPashkin
Copy link
Member

Cargo failure issue rust-lang/cargo#3819

@GuillaumeGomez
Copy link
Member Author

Cargo once again...

@GuillaumeGomez
Copy link
Member Author

@EPashkin: Does the code seem ok to you by the way?

@EPashkin
Copy link
Member

Yes, code seems right.
About cargo: interesting comment rust-lang/cargo#3819 (comment) Maybe these failures don't repeated after check fixed.

@GuillaumeGomez
Copy link
Member Author

Should I merge then?

@EPashkin
Copy link
Member

IMHO yes

@GuillaumeGomez GuillaumeGomez merged commit e5bf5d8 into gtk-rs:master Mar 12, 2017
@GuillaumeGomez GuillaumeGomez deleted the quartz branch March 12, 2017 21:04
@GuillaumeGomez
Copy link
Member Author

Thanks for the review! ;)

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

Successfully merging this pull request may close these issues.

2 participants